Tags are firing on each page load

Gold Contributor
Gold Contributor

Team,

We are using Jquery on handler 1.7 extension for our registration successful tracking with some custom code with some condition and it is tracking fine as expected. However, it is tracking on whenever the thank you page loads and it start recording the duplicate data. So, wondering how to stop recording those duplixate value when we reload the thank you page. Please let me know for any other information.

Thank you,

Jay.

4 REPLIES 4

Tags are firing on each page load

Gold Contributor
Gold Contributor

Hi @Jayakrishnaa - You might try setting utag_cfg_ovrd.noview to "true".  This will prevent the default page load call from happening.  Keep in mind, you will need to manually initiate utag.view( ) calls when utag_cfg_ovrd.noview is set to "true"

window.utag_cfg_ovrd = window.utag_cfg_ovrd || {}; //Make sure we don't kill a previous decleration of the object
window.utag_cfg_ovrd.noview = true; 

 

Kevin Bridges

Tags are firing on each page load

Tealium Employee

@Jayakrishnaa

If you want to stop duplicate data from firing on the thank you page, you may want to look at combining what @kbridges suggested with a cookie check.

You would have a flow like this:

  1. Load Thank you page for the first time
  2. Set a cookie to say you have seen this page (maybe use a key of the order id???)
  3. When the page is reloaded, in a pre-loader do a check to see if the cookie is there
    1. If it is there set noview to true

Hopefully this will help

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Tags are firing on each page load

Gold Contributor
Gold Contributor

Thanks for your assist. I will try those option and keep here posted.

Tags are firing on each page load

Gold Contributor
Gold Contributor

I have applied the suggested code and I see it is not working as expected. Could you please guide me on this.

if(window.location.pathname=="/content/WebsiteServices/us/529-moxetumomab-dtc/en/us/hcp/request-a-rep-confirm.html" || window.location.pathname=="/hcp/request-a-rep-confirm.html"){
window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.noview = true;
}

Not sure how to take this up. It would be good if you asisst me to fix this issue. 

Public