- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
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.
08-16-2018 07:27 AM - last edited on 08-16-2018 07:30 AM by kathleen_jo
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;
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:
Hopefully this will help
Adrian
Thanks for your assist. I will try those option and keep here posted.
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.
Copyright All Rights Reserved © 2008-2023