Reply
Highlighted
Visitor
Posts: 9
Registered: ‎08-14-2018

Tags fired twice

Hi,

we have a new checkout process as a single page application where URL is changing build with vue.js.

I am using the noview=true extension but on the entry page and confirmation page all tags are fired twice. But not in on the steps between!

window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.noview = true;

In the console I can see that the extension set the noview to true.

window.utag_cfg_ovrd
{noview: true}

So what could cause the tags firing twice?

Thanks in advance for any hint!

Best regards,

Gerhard Klassen

Visitor
Posts: 34
Registered: ‎03-09-2016

Re: Tags fired twice

Hi @Gerhard5000,

just to be sure, have you scoped the tag correctly to "Pre Loader"?

Best regards,

Andreas

Reply
0 Kudos
Visitor
Posts: 9
Registered: ‎08-14-2018

Re: Tags fired twice

yes

Reply
0 Kudos
Visitor
Posts: 34
Registered: ‎03-09-2016

Re: Tags fired twice

In our single page application, we once had a problem with the prendering of the page, which caused a duplicated Tealium call on the inital page (once from the prerendering and once from the dynamic call).
Reply
0 Kudos
Visitor
Posts: 9
Registered: ‎08-14-2018

Re: Tags fired twice

ok, I just checked that the preloader was wrong configured on inital page load. This if fixed and working.

Thanks for asking. So bad.

But I still have two loads on the confirmation page.

Reply
0 Kudos
Visitor
Posts: 9
Registered: ‎08-14-2018

Re: Tags fired twice

But I can see that the preloader on confirmation is not working.

I have added a console.log but I can`t see it...I pushed the extension to the first place but it is not executed...

Reply
0 Kudos
Visitor
Posts: 9
Registered: ‎08-14-2018

Re: Tags fired twice

As I think the extension is not working is it possible to hard code on the confirmation page to prevent firing twice?

window.utag_cfg_ovrd.noview = true

Reply
0 Kudos
Visitor
Posts: 34
Registered: ‎03-09-2016

Re: Tags fired twice

@Gerhard5000

To see if the extension is the cause of your problem you can activate the Tealium debug output by setting a debug cookie (see here: https://community.tealiumiq.com/t5/JavaScript-utag-js/Console-Debug-Output/ta-p/14328). Look in the console output for "trigger:view", which appears if Tealium is dynamically triggerd via calling utag.view().

If on your confirmation page you see "trigger:view" twice, the problem is maybe the page code which calls Tealium twice. If however your tags are fired twice but you only see "trigger:view" once, you know the first call is from the tag loading and the problem might be your pre loader extension.

Visitor
Posts: 9
Registered: ‎08-14-2018

Re: Tags fired twice

ahrasch: Thank you very much for your feedback.

You are right, with debug output I could see that view was triggered twice.

After talking with Simon B. from Tealium he showed me how to configure the firing rules - so we don't fire anything at the first view....but of course Dev has to kill the first view....

 

Reply
0 Kudos