- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
We came across a scenario where we want to block the call the app team and fire it from utag.js. Can you please advice on how we can achieve that?
Hey,
You can use the following code
window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.noview = true;
This should block the automatic utag.view event on page load, thus suppressing all tags by default.
Then you would need to fire a manual view, e.g. at DOM Ready, along the lines of:
utag.view(utag.data, null, [7]);
Where that third argument is an array that contains the tag IDs of the tags you want to fire (in this case, the one tag you don't want to suppress).
Copyright All Rights Reserved © 2008-2023