Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Rookie Contributor
 
7 REPLIES 7
Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Employee Emeritus

You can. Just setup a Javascript extension that is scoped to pre-loader and enter the code like:
if (document.URL == "url of your iframe"){ window.utag_cfg_ovrd = {noview : true};}

This will load the tags for the page but will suppress the utag.view that occurs on page load.

Instead of doing the evaluation on the URL you could set a variable and value in the utag_data object that indicates that the page is an iframe and use that to suppress the view call.

Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Rookie Contributor
Thanks, Steve! This helps.
Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Rookie Contributor

Hi Steve,

is there also a way of doing this from the page instead of through a pre-loader extension?

Like through a data layer variable or so.

Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Silver Contributor
Silver Contributor

Hi Steve,

 

that works for all tags in one shot. Do you think there is a way to do it for a specific tag only? I know there is an advanced settings for each tag that does it, but I need to decide this into the page loading and not in Tealium panel.

 

thanks

Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Employee Emeritus

Hey Jarno,

 

If you want to have a single tag not fire on a page or in a given situation, I would use a load rule rather than suppression.

 

Thanks, Steve

Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Silver Contributor
Silver Contributor

Hi Steve,

 

if you avoid loading a tag using a load rule, that tag won't be never available in that page. I want to track the page view, but I need to post-pone the server call because there is something within the page that we need to check.

 

What happen if I set "a=noview" using an extension tag scoped?

Highlighted

Can we call a utag.link() call from an iframe without tracking the view call? I have a page with an iframe, I basically want to fire a event tag on a link on the iframe but not record the page view.

Employee Emeritus

The noview override is for all tags not a specific tag.

 

If you are on the most current version of utag, you could set a load rule so the tag won't fire on the initial page view and then when you do your check and know you want to fire the tag execute a utag.view({utag_data},null,[UID for Tag]), which will fire only the tag which you specify using the UID from the Tealium console and will load it if not already loaded on the page. For an answer tailored to your specific use case please reach out to your account manager for more information.