Hi everyone,
I’m currently using a custom pixel in Shopify to load GTM (Google Tag Manager), and tracking store traffic through Google Analytics 4 (GA4).
However, I’ve noticed a significant discrepancy between the number of actual orders and the number of “Thank You” page views reported in GA4, and I’d appreciate any insights into what might be causing this.
Between June 1 and June 15, the data shows:
Actual orders on Shopify: 2,961
Thank You page views in GA4: 1,129
That’s a gap of nearly 3x.
In GA4, the “Thank You” page views are being counted based on URLs that include /thank-you.
Has anyone else experienced this kind of mismatch? Or does anyone know potential reasons why GA4 might undercount the Thank You page views?
For reference, here’s the GTM code I added via Shopify’s Custom Pixel feature (GTM-XXXXXXX is replaced with my actual container ID):
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),
dl=l!='dataLayer'?'&l='+l:'';
j.async=true;
j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');
Any suggestions or similar experiences would be greatly appreciated. Thank you in advance!



