- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
08-08-2015 07:33 PM
08-10-2015 12:54 AM - last edited on 08-07-2016 08:27 AM by kathleen_jo
Hi Yuen, Depending on when you call utag.js (i.e. Tealium) and what version of Tealium you are using - the utag.link() event may or may not be able to be called quickly enough. However, to stand the best chance of being able to call it: 1. Upgrade to the latest Tealium version like this: https://community.tealiumiq.com/t5/uTag/How-do-I-upgrade-to-the-latest-utag-js/ta-p/5042 2. Ensure utag.js is called at the top of the as recommended In order for utag.link() to work, Tealium needs to have initialised the 'utag.link()' function in utag.js. However, as most implementations now are asynchronous, there's no guarantee that by the time you want to call it - it will exist (if you want to call it extremely quickly as you do in this scenario). One option would be to load utag.js synchronously (see code center : https://community.tealiumiq.com/t5/Tealium-iQ/Code-Center/ta-p/13631 - this way utag.link() will definitely be available to be called at any point past the utag.js call. However, this is not recommended as utag.js doesn't need to block the page - it's best to be called asynchronously. This might not be the answer you are looking for but unfortunately for technical reasons it's not possible to call utag.link() unless you know that it has been initialised. I hope this helps. Cheers, Roshan
08-10-2015 07:13 PM
08-10-2015 07:22 PM
08-10-2015 10:08 PM
08-11-2015 03:08 AM
Copyright All Rights Reserved © 2008-2023