Gifted | Google Analytics 4 for third-party tracking

Gifted | 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 have followed 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 Journey 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 Gifted there are many points to 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’

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