05-10-2017 01:29 AM
I think the solution would be to prevent the execution of the link and redirect the user after the utag.link() and all consecutive events are finished. Can this be accomplished by using the callback-parameter in utag.link()?
Or is it better to call the conversion directly like described in the google docs (https://support.google.com/adwords/answer/6331304) without using utag.link at all?
Or am I completely missing something?
05-10-2017 11:57 AM
05-10-2017 03:01 PM
There are a couple of things you can try.
1) Mousedown vs. click
In the event handler logic, if you are executing utag.link on a click, the other logic on the page may execute before the utag.link occurs. Try replacing the 'click' logic with 'mousedown'. This may trigger the utag.link prior to the page processing the href click.
2) The pixel is fired but you are not seeing it
Without all the details this is a shot in the dark. If, for example, you are using Chrome and viewing the Network panel for verification of the pixel being sent, make sure the option Preserve Log checked to ensure the list remains intact when the new page loads.
Let me know if either of these suggestions help.
Thank you, David
06-13-2017 10:06 PM
Nevertheless, we can use jQuery event.stopPropagation() Method, if you are executing utag.link on a click/Mousedown on the page may trigger the utag.link prior to the page processing the href click.
alert("The span element was clicked.");
alert("The p element was clicked.");
alert("The div element was clicked.");
Hope it helps out!!!