Google Tag Manager
This module allows to get advantages of Google Tag Manager service. As the result it's possible to connect different analytics (such as Google Analytics) from one place - Google Tag Manager interface.
The only configuration in UNA is just "Google Tag Manager Container ID", all other configuration is done via Google interface.
Refer to Google Tag Manager user's guide for complete setup guide.
Basic Google Analytics tracking setup
- Create Google Tag Manager account and Web container
- Skip "Install Google Tag Manager" instructions and just install "Google Tag Manager" module in UNA
- Get your Google Tag Manager ID and insert it in your UNA Studio > Google Tag Manager > Settings
[/images/gtm-03-get-id.png][alt=] - Follow this guide on how to add Google Analytics to Google Tag Manager.
Custom events and variables
Data layer variables which are passes on each page:
membership-id
- current user membership IDmembership-name
- current user membership nameprofile-type
- current user profile type (such asaccount
,bx_persons
,bx_organizations
, etc)profile-status
- current user profile status (such asactive
,pending
,suspended
)account-email-confirmed
- whether current user has email confirmed (0
or1
)account-profiles-count
- number of profiles for the current accountkeys-secrets-count
- number of generated key&secret pairs
The following custom events are supported:
register
- when new UNA account is registeredmarket-download
- when download occurs in Market module, additional data params for the event:product-id
- Market product IDproduct-name
- Market product name (not publicly visible)product-title
- Market product tileproduct-added
- unix timestamp of when product was addedproduct-changed
- unix timestamp of when product was changedproduct-thumb
- product thumbnail id (can be used to check if thumb exists)product-price-single
- product price for single purchaseproduct-price-recurring
- product price for recurring billingproduct-duration-recurring
- recurring billing duration cycleproduct-favorites
- number of times the product was added to favoritesproduct-featured
- check if the product is featuredproduct-comments
- number of comments(reviews) for the productvendor-display-name
- product author display namevendor-profile-id
- product author ID
purchase
- when something is purchased, additional data params for the event:amount
- purchase amountcurrency
- currency codeorder-id
- order ID
NOTE:purchase
event supports enhanced ecommerce, which can be enabled in Google Analytics for automatic tracking
Also for Market module the following additional data is passed for one last product in case of several products in one order:brand
,vendor-display-name
- product author display namevendor-profile-id
- product author IDmodule-id
- module ID where purchase is happeningmodule-name
- module name where purchase is happeningquantity
- quantity of the productname
,product-name
- Market product name (not publicly visible)price
- Market product price single or recurring (exact purchase amount is inamount
field)product-id
- Market product IDproduct-title
- Market product tileproduct-added
- unix timestamp of when product was addedproduct-changed
- unix timestamp of when product was changedproduct-thumb
- product thumbnail id (can be used to check if thumb exists)product-price-single
- product price for single purchaseproduct-price-recurring
- product price for recurring billingproduct-duration-recurring
- recurring billing duration cycleproduct-favorites
- number of times the product was added to favoritesproduct-featured
- check if the product is featuredproduct-comments
- number of comments(reviews) for the product