Highlighted

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

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

8 REPLIES 8

Tags fired twice

ahrasch
Frequent Visitor
ahrasch

Hi @Gerhard5000,

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

Best regards,

Andreas

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

yes

Tags fired twice

ahrasch
Frequent Visitor
ahrasch
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).

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

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.

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

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

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

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

Tags fired twice

ahrasch
Frequent Visitor
ahrasch

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

Tags fired twice

Gerhard5000
Visitor
Gerhard5000

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