Blocking view call from the team

Gold Contributor
Gold Contributor

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?

1 REPLY 1

Blocking view call from the team

Bronze Contributor
Bronze Contributor

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).

Public