Exit link name instead of link url | Community
Skip to main content
Level 2
June 2, 2021
Solved

Exit link name instead of link url

  • June 2, 2021
  • 4 replies
  • 6356 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by atulsingh17

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.

4 replies

yuhuisg
Community Advisor
Community Advisor
June 2, 2021

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.

lakshmip2Author
Level 2
June 2, 2021

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?

 

atulsingh17
Level 2
June 2, 2021

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.

atulsingh17
atulsingh17Accepted solution
Level 2
June 2, 2021

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.

lakshmip2Author
Level 2
June 2, 2021

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.

 

 

atulsingh17
Level 2
June 2, 2021
Sorry to ask, but I fail to understand what doesn't seems to work (the linkname ?) ? Can you share the screenshot of server call ?