Missing e-com events in dataLayer
I've set up the GA4 Plugin, but none of the ecom-events are working.
https://www.loom.com/share/803bf4f3bc6140eb95dee1fcb179f6d9
I've tried to modify the variables to access the e-com data and the triggers from a custom event to a pageview. No luck.
Any feedback?
-
Official comment
Thanks for the video! There's no need to modify any of the Tags, Triggers or Variables our extension creates, as they're fully configured out of the box when importing the JSON container. There are a few things to point out about this specific situation:
- If your Success Page URL is default (checkout/onepage/success), you don't need to add it to the configuration.
- You're using Measurement Protocol tracking for most of your events, and this means that event data is sent server-side, not client-side via the dataLayer, which is why your tags are not firing. The setting called Automatically disable data layer for enabled measurement protocol events is enabled in your case, and it does what the name suggests. It disables the dataLayer for the enabled events so as to avoid duplicate tracking.
If you want to keep the dataLayer enabled AND use Measurement Protocol, you can set the Automatically disable data layer for enabled measurement protocol events option to No and simply Pause your Tags in Google Tag Manager. This will ensure the dataLayer stays active and populated and that duplicate data is not sent to Google Analytics because the Tags won't fire.
Comment actions
Please sign in to leave a comment.
Comments
2 comments