Skip to main content

How to set up GA4 ecommerce events with Google Tag Manager

Track ecommerce activity on your Glu site by setting up a GA4 event tag in Google Tag Manager that captures the data your Glu site automatically passes to the Data Layer.

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.

Did this answer your question?