Setting up Google Tag Manager
Google Tag Manager is a tag management system that allows you to quickly and easily update tags and code snippets on your website or mobile app, such as those intended for traffic analysis and marketing optimization. You can add and update AdWords, Google Analytics, Firebase Analytics, Floodlight, and 3rd party or custom tags from the Tag Manager user interface instead of editing site code.
Go to official web site for Google Tag ManagerWith Google Tag Manager you have control which tags (like Google Analytics) are activated on the web skin. To setup Google Analytics with Google Tag Manager some configuration is required.
As the web skin is a single page application it does not automatically trigger pageviews in Google Analytics. It triggers virtual pageviews which need to be mapped to pageviews via the Google Tag Manager.
To achieve this, execute the following steps in the Google Tag Manager container configuration:
- Go to
Triggers
and clickNew
. In theChoose trigger type
step selectCustom Event
and name the eventVirtual pageview
. In theThis trigger fires on
step chooseSome Custom Events
and fill in: Event equalsvirtualPageView
. - Add a user-defined variable
Virtual url
. In theChoose Type
step selectData Layer Variable
. In theVariable Configuration
step, fill invirtualUrl
in theData Layer Variable Name
. - Add the universal analytics tag.
- The
Track Type
should bePage View
. - In
Field to Set
fill inpage
inField Name
and select theVirtual url
variable as the value. - In the
Ecommerce
step setEnable Enhanced Ecommerce Features
toTrue
and selectUse Data Layer
. - In the
Fire On
step selectAll Pages
and also clickMore
and select theVirtual pageview
trigger we just created. - Save the tag
- The
- Ensure that the container works by previewing it.
- Publish the container.
Limitations
To ensure selling tickets via Ticketmatic is secure and stable the tags that can be activated via Google Tag Manager are limited. At this time only Google tags are allowed, including Floodlight (flc
, fls
). To see which tags are Google tags, click here.
Cross-domain tracking
It is possible to enable cross-domain tracking with Google Analytics. You can find more information about setting up cross-domain tracking with Google Tag Manager here. apps.ticketmatic.com
should be one of the domains in the Auto Link Domains
field.
Enhanced ecommerce
Whenever a customer adds / removes tickets to their order, checkouts or purchases tickets, this information is pushed to Google Tag Manager. If required, this information can be pushed through to Google Analytic to track conversions, etc.
To activate enhanced ecommerce the following configurations should be executed in Google Tag Manager:
- Add a trigger
addToCart
. In theChoose Event
step selectCustom Event
. In theFire On
step configure the condition that it fires wheneverEvent
containsaddToCart
. - Add a trigger
checkout
. In theChoose Event
step selectCustom Event
. In theFire On
step configure the condition that it fires wheneverEvent
containscheckout
. - Add a trigger
purchase
. In theChoose Event
step selectCustom Event
. In theFire On
step configure the condition that it fires wheneverEvent
containspurchase
. - Add a trigger
removeFromCart
. In theChoose Event
step selectCustom Event
. In theFire On
step configure the condition that it fires wheneverEvent
containsremoveFromCart
. - Add a new tag
Universal Analytics - addToCart
- The
Track Type
should beEvent
. - The
Event Category
should beEnhanced Ecommerce
. - The
Action
should beaddToCart
. - The
Google Analytics Settings
should be{{Enhanced Ecommerce}}
. - The
Firing Trigger
should be theaddToCart
custom event.
- The
- Add a new tag
Universal Analytics - checkout
- The
Track Type
should beEvent
. - The
Event Category
should beEnhanced Ecommerce
. - The
Action
should becheckout
. - The
Google Analytics Settings
should be{{Enhanced Ecommerce}}
. - The
Firing Trigger
should be thecheckout
custom event.
- The
- Add a new tag
Universal Analytics - purchase
- The
Track Type
should beEvent
. - The
Event Category
should beEnhanced Ecommerce
. - The
Action
should bepurchase
. - The
Google Analytics Settings
should be{{Enhanced Ecommerce}}
. - The
Firing Trigger
should be thepurchase
custom event.
- The
- Add a new tag
Universal Analytics - removeFromCart
- The
Track Type
should beEvent
. - The
Event Category
should beEnhanced Ecommerce
. - The
Action
should beremoveFromCart
. - The
Google Analytics Settings
should be{{Enhanced Ecommerce}}
. - The
Firing Trigger
should be theremoveFromCart
custom event.
- The
With this configuration active Google Tag Manager will push Enhanced Ecommerce data to Google Analytics.
Data Layer Variables
There are two data layer variables active which can be referenced in Google Tag Manager:
virtualUrl
: The url of the current pageaccount
: The name of the account