What this is
The Zeotap GTM tag is a JavaScript tag that Zeotap publishes as a custom template inside Google Tag Manager. It is asynchronous, so it does not affect the loading of your website or the end-user experience. Because it is a GTM custom template, you configure it from a form in the GTM interface — the write key, the consent method, the events to track and the identity variables to capture — instead of changing your website’s code every time that configuration changes. A Tag Manager source is created with the Customer Data entity, and you choose the region of upload when you create it.Prerequisites
- A Google Tag Manager account, with the GTM container installed on your website. For accounts, containers and tag basics, refer to Google’s Setting up and installing Tag Manager.
- A data layer on your website. See What your data layer must provide.
- Access to the Sources application under Integrate in the Zeotap CDP App.
- A Tag Manager source created in Zeotap. The source details give you the Write Key, which the tag needs in order to record events.
What your data layer must provide
The tag collects what it sends to Zeotap from your website’s data layer, so the data layer is what makes the relevant information available for segment activation and event orchestration. The data layer object is flattened and used in the corresponding collection calls. Push the following into the data layer, according to what you want to capture:- An event name — stored under GTM’s default
eventkey, or under another key that you name in the tag’s Event Key field. - Event properties — the properties you want recorded against each event.
- A login event — the event fired when a user logs in, carrying the identities you want stored: email address, cellphone number with country code and login ID, either raw or already hashed. Those identities persist across the subsequent calls to Zeotap.
- A logout event — used to unset the email address, phone number or login ID from the events that follow it.
- User attributes — the data layer variables that hold user-related information.
country and city, for example, are derived from the visitor’s IP address instead. For the full list, see Blacklisted Fields for Data Ingestion.
Set up the Google Tag Manager source
1
Create the source in Zeotap
In the Sources application, create a source with Tag Managers as the Category and Google Tag Manager as the Data Source. See Create a Tag Manager Source.
2
Implement the tag in GTM
Add the Zeotap tag template to your GTM workspace, configure it with the write key and your tracking, identity and consent settings, set up the trigger, and validate the tag. See Implement the Google Tag Manager Source.
3
Confirm that data is arriving
Once the source is live, open the PREVIEW DATA tab on the source to see incoming data. See Components of the Preview Data Tab.
Next steps
- Create a Tag Manager Source — register the source in Zeotap.
- Implement the Google Tag Manager Source — add, configure, trigger and validate the tag.
- Tag Configuration Overview — a field-by-field reference for every option on the tag.
- Adobe Experience Platform Tag Extension — the other tag manager integration, listed alongside GTM on Tag Managers.