Highlighted

Handling event tracking race condition(s)

Hi, Is there any mechanism inbuilt in Tealium to handle the race condition(s) for Jquery-based event tracking? In other words, it performs the same functionality as something along the lines of 'setTimeout (function(){..},500)' in Js. A lot of the event tracking done by us involves tracking click-outs to external links, so it would be efficient and really handy to have some native functionality that accomplishes this task. Thanks, Param
1 REPLY 1
Highlighted

Handling event tracking race condition(s)

Tealium Employee
Param, In order to accomplish "guaranteed" tracking, typically you would need to control all of your outbound links by "blocking" the built-in click functionality in the browser and doing the navigation in Javascript. This is shown here: https://support.google.com/analytics/answer/1136920?hl=en I generally don't recommend this because you are now introducing a chance that your custom Javascript has a bug and your links will no longer work. If you are willing to take on the risk, you should be able to build something in your page (or possibly in a jQuery Extension in Tealium) that is similar to the code in the Google support link above. You would replace _gaq.push(['_trackEvent' call with a utag.link call.