Highlighted

GA Purchase event firing on Order reveiw page and order failed page

Anonymous
Not applicable
Anonymous

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 (216).png

 

screenshot 2

Screenshot (217).png

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.

2 REPLIES 2
Highlighted

GA Purchase event firing on Order reveiw page and order failed page

Tealium Expert
Tealium Expert

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.

Highlighted

GA Purchase event firing on Order reveiw page and order failed page

Anonymous
Not applicable
Anonymous

Hi @BenStephenson 

 

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.