Before you start
Make sure you've already added a Google Tag in GTM to track page views before setting up ecommerce events.
1 ᐧ Create a new GA4 event tag
In Google Tag Manager, create a new GA4 Event tag and set the event name to:
{{ Event }}
2 ᐧ Configure the data source
In the More Settings section of the tag configuration, select Send ecommerce data and set the data source to Data Layer.
3 ᐧ Create a custom event trigger
Create a new trigger for this tag with the type set to Custom Event. In the event name field, add the following string:
view_item|add_to_cart|remove_from_cart|begin_checkout|add_shipping_info|add_payment_info|purchase
Tick Use regex matching to allow any of these events to fire the trigger.
4 ᐧ Save and publish
Save the tag and trigger, then publish your GTM container for the changes to take effect.
💡 Good to know: These events are passed to the Data Layer automatically by your Glu site — you don't need to add any custom code to capture them.
