Activity Map- Link Tracking Methodology

Avatar

Avatar
Validate 1
Level 1
raymondeb480525
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
raymondeb480525
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
raymondeb480525
Level 1

21-03-2019

Hi everyone,

I wanted to used Link Action instead of innertext. to identify the links on the page. Does anyone know how should I proceed?

Thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

Correct reply

145 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

Correct reply

145 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile
Asheesh_P
MVP

27-04-2019

Hi Raymod,

There are foloowing reasons Adobe uses InnerText versus using Link Action (URL)

Some of the issues you might run into when using Link Action are:

  • having two or more distinct links with the same ID
  • readability of the link
  • one link with multiple actions (depending on the device where you are viewing the link)

As a result, Adobe uses InnerText with these benefits over using Link Action (URL):

  • It is a good representation of the Link identity. It is not common to have multiple links with the same text.
  • It ensures consistency across devices and browser types.
  • It is not affected by a link repositioning on the page.
  • It improves readability, so users can start analyzing Link tracking reports outside Activity Map

If you still want to go for it, you can do this by using s_objectID in each link. syntax s_objectID="unique_id". e.g.

<a href="https://forums.adobe.com/art.jsp?id=559" onClick="s_objectID='top left 1';">Article 559</a>

<a href="https://forums.adobe.com/home.jsp" onClick="s_objectID='prod 123789 home page';">Home</a>

Alternatively, you can customize link function to include in the AppMeasurement ActivityMap Module file in modified form. e.g.

s.ActivityMap.link = function(ele,linkName){

if(linkName){

return linkName;

}

if(ele){

if(ele.tagName == 'A' && ele.href){

return ele.href;

}

}

}

Thanks,

Asheesh

Answers (3)

Answers (3)

Avatar

Avatar
Establish
Level 2
Abambo
Level 2

Likes

9 likes

Total Posts

23 posts

Correct reply

0 solutions
Top badges earned
Establish
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Establish
Level 2
Abambo
Level 2

Likes

9 likes

Total Posts

23 posts

Correct reply

0 solutions
Top badges earned
Establish
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Abambo
Level 2

21-03-2019

Hi Raymond,

That's exactly what I needed to know, as you posted in the forum to be used for forum related questions.

Discussion successfully moved from Forum comments to Adobe Experience Cloud

Avatar

Avatar
Validate 1
Level 1
raymondeb480525
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
raymondeb480525
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
raymondeb480525
Level 1

21-03-2019

I  am using the adobe experience cloud, it is what you mean with adobe application?

Avatar

Avatar
Establish
Level 2
Abambo
Level 2

Likes

9 likes

Total Posts

23 posts

Correct reply

0 solutions
Top badges earned
Establish
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Establish
Level 2
Abambo
Level 2

Likes

9 likes

Total Posts

23 posts

Correct reply

0 solutions
Top badges earned
Establish
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Abambo
Level 2

21-03-2019

Please specify the Adobe application you use! A moderator will ve your question to the appropriate forum.