- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
05-21-2018 12:24 PM - edited 05-21-2018 12:29 PM
Hi
GA tag is set to fire as shown in the screenshot 1 with enhanced ecommerce function turned on and ecommerce variables mapped from ecommerce as in screenshot 2
screenshot 1
screenshot 2
this setup of GA is sending in purchase information on ORDERREVEIW PAGE and ORDER FAILED PAGE .Can i actually supress the purchase tag not to be fired on the above listed pages .I used load rules to alter the way the tag fires and turned Enhanced ecommerce tracking off to correct the issue .Is there any other way to go about this.
Solved! Go to Solution.
05-29-2018 09:19 AM - edited 05-29-2018 09:20 AM
Hi @Anonymous
You could add an extension scoped to the GA tag that blanks out the ecommerce variables if the page is not the order conf page.
I've done that a couple of times for different purposes (on the Adobe tag rather than GA though).
Generally something like:
if(b.pageName !== 'order-confirmation') { b.orderId = ""; b.revenue = ""; }
Obviously replace the data layer objects with your data layer object names. This then stops the ecommerce extension populating the __cc... objects, and stops the automatic mapping of the purchase events. You can scope this to any tag that does automatic ecommerce tracking.
05-29-2018 12:19 PM - last edited on 05-29-2018 12:48 PM by kathleen_jo
Thanks for the solution ..this works as expected .I tried supressing the tag firing on order rveiew page and passed order info to GA.This looks like a excellent solution.
Copyright All Rights Reserved © 2008-2021