1.4K members online now
1.4K members online now
Understand the information in your Optimize reports and in your Google Analytics reports.
Guide Me

Double counting transactions

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all,


We've just implemented an experiment on an ecommerce site.


All the tracking was working perfectly before this experiment started but since we've started it we're finding all transactions are being duplicated in GA, so in the overview report we see double the number of transactions when compared to the sales performance report. The odd thing is, it isn't effecting the revenue number, just the number of transactions being recorded.


We've implemented the GO code alongside the GTM code, following the instructions to the letter


<head itemscope itemtype="http://schema.org/WebPage">
		<meta charset="utf-8" />
			window.dataLayer = window.dataLayer || [];			

		<!-- Google Tag Manager -->
			<!-- Page hiding snippet (recommended)  -->
			<style>.async-hide { opacity: 0 !important} </style>
			<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
			h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};

			<!-- Modified Analytics tracking code with Optimize plugin -->
			(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

			ga('create', 'UA-28883833-1', 'auto');  // Update tracker settings 
			ga('require', 'GTM-K7RJ7S4'); 

					new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],


Has anyone come across this and know a way to fix it?


All help appreciated.




Marked as Best Answer.
Accepted by topic author Alex O

Double counting transactions

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Have managed to resolve this myself.


When adding in the ecom data layer, you need to ensure this appears below the modified Analytics code but above the GTM code, this will ensure that transactions aren't double counted.