Hi,
I have some lengthy external links in my website, which are very tough to identify which page it takes. Hence, I have added "name" attribute to all the link tags (<a>). But I am still seeing that the link URLs are getting fetched through launch, but not names. What might be the issue over here?
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @lakshmip2 ,
I assume you are using Analytics extension to trackin automatic exit links, in which, case you would see pev1, that is, linkurl in the exit links report.
In case you want to send a friendly name to your exit link report, you might want to use custom implementation using a event based rule instead of auto exit link tracking, wherein you can set friendly name for your exit links.
By default, Exit Links are tracked with the links' URLs.
If you want to track with your "name" attribute, you need to track those with a s.tl("e", ...) beacon.
hi @yuhuisg,
For this purpose, I am trying to define it through a rule. But I have to specify a URL, it is not being populated automatically.
Could you please explain in detail about how to go for this?
Views
Replies
Total Likes
I suggest create a dataelement to capture the information (linkname) of the link clicked and then pass that data element into the custom rule you've created.
Views
Replies
Total Likes
@lakshmip2here's what you can do:
1. Create a Rule.
2. Add a Click event.
2.1. In that click event, use a selector that basically selects all <A> links that have URLs that are not of your website's domain name. I leave that as an exercise in writing CSS selectors to you.
3. Add an Adobe Analytics > Send beacon action, like what you've done in your screenshot.
3.1. In the Destination URL, specify %this.getAttribute(name)%.
This assumes that your links have the following specification:
<a href="https://www.external-link.com" name="This is the name that I want to track to analytics">Click me!</a>
Views
Replies
Total Likes
Hi @lakshmip2 ,
I assume you are using Analytics extension to trackin automatic exit links, in which, case you would see pev1, that is, linkurl in the exit links report.
In case you want to send a friendly name to your exit link report, you might want to use custom implementation using a event based rule instead of auto exit link tracking, wherein you can set friendly name for your exit links.
Hi @yuhuisg @atulsingh17 ,
Thanks for your response.
I have configured the rule as follows but it doesn't seem to work yet:
Core : Click is as follows:
Rule is as follows:
All the links have a name attribute, and css selector is capturing the elements as expected.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies