Ecommerce Platform | Google Analytics 4 for third-party tracking

Ecommerce Platform | Google Analytics 4 for third-party tracking

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.

Google Tag Manager

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.

  1. To find your Google Tag Manager container ID:

  2. Log in to your Google Tag Manager account and open a container

  3. 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.

  4. That’s your Google Tag Manager ID.

Event Triggers

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:

  1. Log in to your Google Tag Manager account and open your container

  2. Click ‘Triggers’ within the left-hand menu bar

  3. To create a new trigger, click ‘New’

  4. Choose your trigger type as a ‘Custom Event’

  5. Write the following ‘events’ within the table to fire on your desired event

  6. 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

Order Confirmation Variables

  1. Log in to your Google Tag Manager account and open your container

  2. Click ‘Variables’ within the left-hand menu bar

  3. To create a new variable, click ‘New’

  4. Choose your variable type ‘Data Layer Variable’

  5. Write the following ‘variable’ within the table to fire with your desired tag

  6. 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

    • Related Articles

    • Ecommerce Platform | Google Analytics 4 tracking

      Ecommerce platform comes with built-in Google Analytics 4 (GA4) e-commerce tracking. This article covers the initial implementation of GA4. Please click here for more information on third-party tracking implementation (for your marketing team or ...
    • Ecommerce Platform | Rates | Set up a minimum lead time restriction

      You may want to set up a minimum lead time restriction for your rates. For example, you have a rate that includes an experience and you'd like some extra time to schedule or prepare this for the guest. How to set up a minimum lead time restriction in ...
    • Ecommerce platform | Dashboards (overview and analytics)

      When you are logged into your ecommerce platform you can view various dashboards which allows you to see how your hotel is performing. Accessing your dashboards Log in to ecommerce platform. The default page should be your Dashboard but if you are on ...
    • Ecommerce platform | Rooms setup

      Within our ecommerce platform you have the ability to make changes to the name, description and images of all of your room types. IMPORTANT: If changes are made within our ecommerce platform, this will override anything being sent through from the ...
    • Ecommerce Platform | Rooms: payment options

      Overview Payment options are not currently rate-specific, therefore the deposit/deferred payment option which you set up will be applied to all of your rates. By default, ecommerce platform sites are set up to take full payment at the point of ...