Showing results for 
Search instead for 
Did you mean: 

Google Analytics Missing Random Transactions

Google Analytics Missing Random Transactions

Hi all,


In my GA account random transactions are not being reported, and I haven't be able to trace any type of pattern. As an example, yesterday I had 8 transactions - Google recorded only 4.


I have tried tons of ways separately (input tracking code manually, enable Google API in Magento, install Magento extension) yet the transactions are still not correct.


I understand that if someone close the browser before the thank you page loads it will not generate the sale - but the # of missing transactions seems way too high.


I've also set up Paypal auto-return so users are directing to the thank you page on my website, which should trigger ecommerce tracking.


Here is Magento extension link and code as it appears on the thank you page of our site.


Please help to resolve the issues. Thanks in Advance!

<script type="text/javascript">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

ga('create', 'UA-79434631-1', '');
ga('set', 'anonymizeIp', false);
ga('send', 'pageview');
ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', { 'id': 'ORD100002155', 'affiliation': 'English', 'revenue': '190.9900', 'shipping': '60.0000', 'tax': '0.0000', 'currency': 'GBP'});
ga('ecommerce:addItem', {'id': 'ORD100002155', 'name': 'POWERBEATS 2 Wireless In-Ear Headphones - Red', 'sku': 'BT-MHBF2PA/A{15}', 'price': '130.9900', 'quantity': '1'});


Re: Google Analytics Missing Random Transactions

Hello @meenahsueh

I would advise you to check what is counted as a transaction in your GA account. There might be inaccuracies in GA eCommerce set up.

What is more, you are right that not all the transactions can be recorded if visitors close browsers before your TY page loads.

You should also understand that Magento and GA are different systems, thus they may count sales differently. If you have such an opportunity, you could also ask Google support team (if you are using AdWords) what is wrong with your eCommerce configuration.

Was my answer helpful? You can accept it as a solution.
230+ professional extensions for M1 & M2 with free lifetime updates!

Re: Google Analytics Missing Random Transactions

You can use the below extension to sync missing orders in GA4/UA. Below extension analyses missing transactions between Magento 2 and Google Analytics which occur due to various reasons such as ad blocker, too many products in one transaction, cookies turned off, JavaScript disabled, etc.

The following link Magento 2 missing orders or transactions in Universal Analytics and GA4 would be useful.