- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
03-14-2016 04:54 AM - edited 03-14-2016 04:57 AM
Once that utag.js is included on the page it will call utag.view() by default. The issue is that at the time the utag.js is included the page's data layer is not ready yet.Moving utag.js file is not an option. Therefore, the solution is to wait for the required data to load and only then call utag.view(). All works great but now I get two utag.view calls and I need to disabled the default one that is called once the utag.js file is included.
Thanks for help!
03-14-2016 07:10 AM
Hi @tomas_balciunas,
To suppress the initial pageview generated by loading utag.js, commonly used on AJAX sites :
window.utag_cfg_ovrd = {noview:true};
The default value for noview is false.
Here is a link to other override options:
Thanks, David
03-14-2016 07:54 AM
03-14-2016 08:05 AM
You would place this in a JavaScript extension in TIQ and scope it to PreLoader.
03-14-2016 08:08 AM - edited 03-14-2016 08:17 AM
Thanks. Could you confirm what is the minimum version of utag is required for this to work? I'm working with a very old version 4.20.
03-14-2016 10:12 AM
You'll need at least utag.js version 4.26 to use the noview flag.
Here are the release notes that describe this setting and how to use it and other override settings: https://community.tealiumiq.com/t5/uTag/utag-js-4-26-Release-Notes/ta-p/11907
03-14-2016 11:00 AM
Copyright All Rights Reserved © 2008-2023