Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Activity Map for non-links?

Berus
Level 3
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
Asheesh_Pandey
Correct answer by
Community Advisor
Community Advisor
0 Replies
JDungan
Level 2
Level 2

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.

Asheesh_Pandey
Correct answer by
Community Advisor
Community Advisor
Berus
Level 3
Level 3
s_object id cannot be used because FAQ is not a link or it does not have <a> tag.