Reputation: 49
I have defined and event based rule in Adobe DTM but I can see this behavior on the site that sometimes the on-click tag does not fire on the click event, where the rule is defined.
Can someone help me understand this, why this is happening and what is way out of this ?
Thanks,
Adi
Upvotes: 1
Views: 1713
Reputation: 116
I agree with other answers that event propagation (e.g. event.preventDefault()) is probably why it happens. But I wonder how to solve the issue when you can not let the event propagate.
My best solution is to manually capture all click events of your site and call a Direct Rule using _satellite.track(). It is far from optimal but it is effective.
Upvotes: 1
Reputation: 1
It's possible that some other code is preventing the click event from being emitted to the DTM code. This will happen if other click handler code uses the preventDefault() functionality or return false, which keeps the event from triggering any other listeners.
Upvotes: 0