Highlighted

Switch to globally suppress utag.view and utag.link calls

Silver Contributor
Silver Contributor

Hey guys,

 

is there a global switch (e.g. in utag.cfg.ovrd?) to globally disable both utag.view and utag.link calls being dispatched to the tags on a page?

 

Example: in our organization there are pages that use GET query strings or hash values that may contain sensitive user information that must not be sent to any thirdparty tag. The functionality cannot be easily changed.

 

As some tags tend to be rather greedy when collecting data of the pages they're fired on, we would like to make sure that as soon as the query or hash string contains any blacklisted parameters, no tags shall be loaded at all or alternatively tags shall be kept from firing when calling utag.link or utag.view.

 

Thanks for your input.

 

Cheers,

Bjoern

2 REPLIES 2
Highlighted

Switch to globally suppress utag.view and utag.link calls

Silver Contributor
Silver Contributor

We do it this way: Preloader Extension:

 

if (document.location.search.search("parameter=xyz") !== -1) 
{
window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.noload = true; 
}

This prevents any utag.link or view methods if the Query STring Parameter/Value combination "parameter=xyz" is found for example. 

Highlighted

Switch to globally suppress utag.view and utag.link calls

Silver Contributor
Silver Contributor
awesome! exactly what I was looking for.

Thx!