Expand my Community achievements bar.

SOLVED

Activity Map for non-links?

Avatar

Level 3

Hello,

 

I have implemented activityMap link, region etc for links, Cta's etc. Ref doc: https://docs.adobe.com/content/help/en/analytics/analyze/activity-map/link-tracking/activitymap-link... 

The use case I am trying to work on is to get activityMap link, region for non-links, for example FAQ's which have expand and collapse option. I'd like to fire activityMap link, region on click of FAQ expand and collapse to better understand the user experience. 

Example: https://codyhouse.co/demo/faq-template/index.html

 

I tried to update html and also faq.click() by using s.tl() function, none of them worked. So, I am wondering if activityMap applies only for links? Has anyone encountered such a use case? How can I populate the FAQ clicks in Analytics? 

 

Thanks in advance for suggestions. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor and Adobe Champion

This is something I've been working on as well.

 

So far what I've discovered that if the element is a "standard" clickable element (ie. link or a button) I have added code to make it work. If the developers do something silly like make a JS clickable span or div (which is just plain bad usability to start with) then it won't work.

 

In your case I can see that these are in fact a tags, so IF you were to add s.tl() click tracking to the anchors, it "should" work... but it might need a little tweaking?

 

I don't see any analytics on your template yet, so it might be hard to see what is happening, but I'd be happy to try and help you out.

Avatar

Correct answer by
Community Advisor

Avatar

Level 3
s_object id cannot be used because FAQ is not a link or it does not have <a> tag.