Skip to main content
johnuff
Level 2
Nov 13, 2020 2:34 PM UTC
Solved

Dynamic Links Adobe Target tracking

I am trying to track dynamic links via AT, in the editor i have the right selectors see image, these link are dynamically added to the pages after page load so don't receive the AT class .at-element-click-tracking. Any ideas how i can track these links?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
evidanaAccepted solution
Community Advisor
Nov 13, 2020 8:47 PM UTC

Are you trying to have all of those function as conversion mbox events? Could just put a click handler on all of them via client side js and fire off a trackEvent call.

 

Something like

 

function fireConversion() { window.adobe.target.trackEvent({'mbox':'facetClick'}) } document.querySelectorAll('div.someclass').forEach((d)=> { d.addEventListener("click", fireConversion); });

9 replies

evidanaCommunity AdvisorAccepted solution
Community Advisor
Nov 13, 2020 8:47 PM UTC

Are you trying to have all of those function as conversion mbox events? Could just put a click handler on all of them via client side js and fire off a trackEvent call.

 

Something like

 

function fireConversion() { window.adobe.target.trackEvent({'mbox':'facetClick'}) } document.querySelectorAll('div.someclass').forEach((d)=> { d.addEventListener("click", fireConversion); });
Translate
johnuff
johnuffAuthor
Level 2
Nov 16, 2020 8:40 AM UTC

Thank you @evidana  for the answer, I did read you can make your own triggers, will this create the same action /event that selecting via the editor? Because when I look in dev tools ad see the delivery action in the network tab I don't see a 'mox' key from the the ones tagged via the editor?

 

 

Translate