Dynamic Links Adobe Target tracking | Community
Skip to main content
johnuff
Level 2
November 13, 2020
Solved

Dynamic Links Adobe Target tracking

  • November 13, 2020
  • 1 reply
  • 2718 views

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.
Best answer by evidana

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); });

1 reply

evidanaCommunity AdvisorAccepted solution
Community Advisor
November 13, 2020

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); });
johnuff
johnuffAuthor
Level 2
November 16, 2020

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?