Analytics - Google Tag Manager (GTM)
homepage: http://google.com/analytics/tag-manager
The Google Tag Manager ID is the reference to the analytics code your have created in the Google Tag Manager tool. Google Tag Manager (GTM) is a free tracking tool and management platform that allows the user to add marketing tags, or snippets of code, to your website to track and collect marketing data. GTM allows users to easily implement tracking tags without modifying the code while improving the information gathering process.
Getting Started
To get started you will need a GTM account, please head over to https://marketingplatform.google.com/about/tag-manager/ and follow the steps to create an account and container with the target platform set to Web, example below.
Once signed in, you’ll want to locate your GTM ID, it should be in the top right hand corner of the screen as shown below.
Copy and paste your GTM ID into the “Google Tag Manager ID” form field located in the Site Settings “Analytics“ card and click Save.
Your ResPax Public Site will now embed your GTM ID and begin pushing events to Google Tag Manager.
Setting Up Tags
In GTM, tracking codes are implemented as Tags. So when you want to add Google Analytics 4 or Facebook’s Tracking Pixel you’d simply create a new tag for it and bind it to a Trigger (pageview, click, form submission, etc.) to fire on.
Tag Templates
Tag Templates are also available to help you get started, simply click on the Templates menu item and then click on Search Gallery as shown below.
Previewing and Debugging
Once you have setup your tags, you can click on the “Preview“ button in the to right hand corner of the screen and use the Tag Manager Preview Mode feature to test the changes you have made.
IMPORTANT! Be sure to include the site query parameter in the Website URL form field as shown below, otherwise your tag will not be detected.
Events
Aside from the default events GTM provides by default, we also push the following events to the dataLayer.
purchase
This event signifies when one or more items is purchased by a user. It’s data structure is based on the Google Analytics 4 purchase event.
{
event: "purchase",
transaction_id: 19538, // Booking id
currency: "AUD", // Booking currency
value: 430, // Booking total
items: [
{
item_id: "2DAYTREK", // Tour / accommodation code.
item_name: "2 Day Trek", // Tour / accommodation name.
quantity: 2 // Sum of passengers.
},
{
item_id: "FOODTOUR",
item_name: "Food Tour",
quantity: 1
}
]
} |
Related articles
The content by label feature displays related articles automatically, based on labels you choose. To edit options for this feature, select the placeholder below and tap the pencil icon.
Related issues
|