-
Troubleshooting issues with GA4 purchase tracking tag
Hey, I seem to be having this issue with GA4 where my basic tag isn’t showing in my Google Analytics, even though it’s there, see:
gtag("event", "purchase", '.yiihelpersJson::htmlEncode([ "transaction_id" => $payment_id, "value" => $value, "currency" => $currency, ]).');
And here’s the gtag that I’m referring to:
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XXXXXXXXX'); </script>
I’m scratching my head here because when I echo the values, they’re all there, but they’re just not tracking for some reason. Any suggestions?
Log in to reply.