Skip to main content

Google Tag Manager - GA4 Ecommerce Events

Overview of how to set up GTM to send ecommerce data from your GVS store to GA4

Sam Lynch avatar
Written by Sam Lynch
Updated over a year ago

This guide is applicable if you have set up your store to use Google Tag Manager (GTM) by adding your Container ID in the Tracking Codes section of GVS admin and are then using GTM to add Google Analytics tracking to your store pages. It will explain how to pass Ecommerce data from GVS to GTM so it can be sent to your Google Analytics account.

This guide applies to sending data to a Google Analytics 4 account (GA4), information for sending data to an older Universal Analytics account is available here.

The final configuration in GTM should consist of 2 GA4 tags - a configuration tag that fires on all pages, and an event tag that uses the Data Layer to access ecommerce data and is fired by a number of custom events.

GA4 Configuration

A GA4 configuration tag should be created that sends a page view event to your GA4 Measurement ID, this tag should be triggered on all pages.

GA4 Event

A GA4 Event tag should be created that uses the previously created GA4 configuration tag and uses the built in variable name {{Event}}. Under More settings enable the option to Send Ecommerce data with Data Layer set as the Data source. Your Giftpro store is set up to pass all required ecommerce data automatically so you don't need to access dataLayer variables directly. The triggers for this tag are detailed below.

This single GA4 Event tag can pass data for a number of different events that are triggered by your Giftpro store. To achieve this, you can create a Custom Event trigger for each events that is sent to Google by your store.

Your GVS store will pass the following Google Analytics events:

view_item_list

select_content

select_item

view_item

add_to_cart

begin_checkout

add_payment_info

checkout_progress

purchase

Please refer to the official GA4 documentation for any further information about these events.

The set up for each trigger will be the same, the type is Custom Event and the name should match the GA4 event name listed above, for example below is a trigger for the view_item event.

Once you have added all triggers you should have a GA4 Event tag that will pass all available ecommerce data to your GA4 account.

Did this answer your question?