Setting up Google Tag Manager for Universal Analytics

Google Tag Manager manages all your website tags. To integrate with , you must add tags for each store in the Google Tag Manager.

Google Tag Manager acts as a bridge between the and .

  • Each property that you define in maps to one Container in Google Tag Manager.
  • Each has a corresponding Container defined in Google Tag Manager.
  • Each Container provides the following parameters that the uses:
    • gtmid
    • gtm_auth
    • gtm_preview

Prerequisites

You must have a Google Tag Manager account.

Importing parameters for the s

The Google Tag Manager templates contain all the tags, triggers, and variables for the B2B and B2C s.

Complete the following steps to download the template and import it into Google Tag Manager.
  1. If you are using version 9.1.6, download IMPORT-GTM-CONTAINER_EmeraldWorkspace.json and IMPORT-GTM-CONTAINER_SapphireWorkspace.json.
  2. From version 9.1.12 onwards, download IMPORT-GTM-CONTAINER_Emerald and EmeraldMP Workspace and IMPORT-GTM-CONTAINER_Sapphire and SapphireMP Workspace.
  3. Log into Google Tag Manager and go to the container for the Emerald .
  4. Go to the Admin tab and click Import Container.
  5. Upload the template json files into the container. Select Existing workspace > Default workspace and select the Merge option with Overwrite conflicting tags, triggers and variables.
  6. Go to the Workspace tab > Variables.
  7. Find Tracking ID and update with the actual Tracking ID (For example, UA-247689403-2).
  8. Click Submit and then Publish to deploy this configuration on Google Tag Manager.