This article covers third-party tracking implementation (if required by your marketing team or agency). Please click here for our article on standard Google Analytics 4 (GA4) tracking implementation, If you wish to have bespoke GA4 tracking, please ensure you follow the linked guide to avoid any duplication of tracking.
For third-party tracking, including Google AdWords & Meta, your Google Tag Manager will be required. Please follow the steps below to access your container ID and share this with a member of the ecommerce platform team.
To find your Google Tag Manager container ID:
Log in to your Google Tag Manager account and open a container
In the top right corner (next to the Submit and Preview buttons) you’ll see some short text that starts with GTM- and then contains some letters/numbers.
That’s your Google Tag Manager ID.
Within ecommerce platform, there are many points in which you can add tracking, to create a trigger for one of these events, follow the steps below:
Log in to your Google Tag Manager account and open your container
Click ‘Triggers’ within the left-hand menu bar
To create a new trigger, click ‘New’
Choose your trigger type as a ‘Custom Event’
Write the following ‘events’ within the table to fire on your desired event
Press save, and use your trigger with your desired tracking
Description | GTM event |
A ‘product view’ i.e. specific room/spa day/product page | view_item |
Adding any product to the basket | add_to_cart |
View basket | view_cart |
Begin checkout (option of guest or sign-in) | begin_checkout |
Guest details & payment | add_payment_info |
Order Complete | orderComplete |
Log in to your Google Tag Manager account and open your container
Click ‘Variables’ within the left-hand menu bar
To create a new variable, click ‘New’
Choose your variable type ‘Data Layer Variable’
Write the following ‘variable’ within the table to fire with your desired tag
Press Save, and use your variable with your desired tracking
Description | 'Variable' |
Order Reference | ecommerce.purchase.actionField.id |
Basket Total Value | ecommerce.purchase.actionField.revenue |
Shipping Amount | ecommerce.purchase.actionField.shipping |
Tax Amount | ecommerce.purchase.actionField.tax |