-
Notifications
You must be signed in to change notification settings - Fork 154
Google Tag Manager
Alex Trofimov edited this page Aug 18, 2021
·
7 revisions
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.
-
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
- Follow this guide on how to add Google Analytics to Google Tag Manager.
Data layer variables which are passes on each page:
-
membership-id
- current user membership ID -
membership-name
- current user membership name -
profile-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 account -
keys-secrets-count
- number of generated key&secret pairs
The following custom events are supported:
-
register
- when new UNA account is registered -
market-download
- when download occurs in Market module, additional data params for the event:-
product-id
- Market product ID -
product-name
- Market product name (not publicly visible) -
product-title
- Market product tile -
product-added
- unix timestamp of when product was added -
product-changed
- unix timestamp of when product was changed -
product-thumb
- product thumbnail id (can be used to check if thumb exists) -
product-price-single
- product price for single purchase -
product-price-recurring
- product price for recurring billing -
product-duration-recurring
- recurring billing duration cycle -
product-favorites
- number of times the product was added to favorites -
product-featured
- check if the product is featured -
product-comments
- number of comments(reviews) for the product -
vendor-display-name
- product author display name -
vendor-profile-id
- product author ID
-
-
purchase
- when something is purchased, additional data params for the event:-
amount
- purchase amount -
currency
- currency code -
order-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 name -
vendor-profile-id
- product author ID -
module-id
- module ID where purchase is happening -
module-name
- module name where purchase is happening -
quantity
- quantity of the product -
name
,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 ID -
product-title
- Market product tile -
product-added
- unix timestamp of when product was added -
product-changed
- unix timestamp of when product was changed -
product-thumb
- product thumbnail id (can be used to check if thumb exists) -
product-price-single
- product price for single purchase -
product-price-recurring
- product price for recurring billing -
product-duration-recurring
- recurring billing duration cycle -
product-favorites
- number of times the product was added to favorites -
product-featured
- check if the product is featured -
product-comments
- number of comments(reviews) for the product
-
IMPORTANT NOTE: documentation was moved here - https://una.io/wiki/Introduction