Developer forum

Forum » Ecommerce - Standard features » Google Analytics ecommerce tracking - double up

Google Analytics ecommerce tracking - double up

Thue Nielsen
Reply

When a user re-visits the "thank-you-page", the order details are sent to Google Analytics once again. Making the revenue double up for the same order.

Solution:

1) Make sure the customer can't get access to the "thank you page" again

2) Make sure the order details aren't sent to GA at second visit

Is solution 1 possible in DW settings?

/Thue


Replies

 
Thomas Schroll
Thomas Schroll
Reply

Hi Thue

Solution 2: You can wrap your script with datalayer push in:

@if (GetInteger("Ecom:Order.ReceiptShowCount") <= 1){}

Then GA only register 1 transaction.

If you need it all done in GTM you can save a cookie and read it back.

Regards Thomas

 
Nicolai Pedersen

 

You must be logged in to post in the forum