I'm trying to get some clarity on how the GA eCommerce tracking works with regards to double counting transactions.
We are going to be pushing the transaction data to the Data Layer on the "Payment Complete" page and then using GTM to pick this up and fire the transaction tag.
I would like to know how I can avoid a duplicate transaction being recorded, say if the user refreshes the page.
Our "Payment Complete" page will only be available during that user session so there is no chance of them, say, bookingmarking the page and coming back at a later date during another session. The main issue is therefore from people refreshing the page.
Is Google able to look at the Transaction ID, since all transaction IDs are unique, and say "Oh this is a duplicate, I guess someone just refreshed the page" and disregard it? I read somewhere that it is unable to do do this and wanted to check.
I also read that, however, if Google sees a duplicate Transaction ID during the same Session then it will disregard it. Can anyone confirm this?
I read a bit that you can set up checks that use a cookie to see if the tag has fired before and if it has then not fire it again. I wanted to try avoid that if possible as it seemed a bit complex.