enableLinkTracking in dynamic content

I had the same problem now and found some possibilites to fix it. Handle an event that fires after the links are added and there

  • re-run enableLinkTracking
  • or add the new links using addListener, f.e.
$("#newelement a").each (function () {
    _paq.push (["addListener", this]);
});
  • or add click handlers to the links and use trackLink to build your own tracking mechanism.
1 Like