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.
Solved! Go to Solution.
Views
Replies
Total Likes
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:
As a result, Adobe uses InnerText with these benefits over using Link Action (URL):
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
Please specify the Adobe application you use! A moderator will ve your question to the appropriate forum.
Views
Replies
Total Likes
I am using the adobe experience cloud, it is what you mean with adobe application?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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:
As a result, Adobe uses InnerText with these benefits over using Link Action (URL):
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
Views
Likes
Replies
Views
Like
Replies