Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Goal: A taglify.io server-side GTM container linked to your Google Tag Manager is configured and running.

Info

tl;drSummary of steps

  1. Create a Google sGTM container on tagmanager.google.com and check the option “Manually provision tagging server”.

  2. Copy the Container Config String

    1. Example: aWQ9R1ABLVdISjlGWkMmZW52PTEmYXV0aD1VUzlrbVhlUWxtcElyVzhENEJBeGxn

  3. Copy the Web Container Id (Attention: This is not the ID of the server-side container)

    1. Example: GTM-WHJ8FZC

  4. In order to improve tracking quality by running sGTM on your own domain, choose a sub-domain of your main domain. The sub-domain should be random (use this website to generate a random string: Random.org)

    1. Example: c3y1mavw4g.yoursite.com

  5. Set an A record with your registrar to

    1. Hostname: c3y1mavw4g.yoursite.com

    2. Type: A

    3. TTL: 60

    4. Data: 34.117.47.164

  6. Write a ticket to Ingenious sGTM Service Center with the following information:

    • Container Config String

    • Web Container Id

    • Your Sub-Domain (c3y1mavw4g.yoursite.com in our example)

  7. To load the gtm-javascript code via your sgtm-container you have to make the following changes to the script on your page.

    1. Replace ${TAGGING_URL} with your tagging url. e.g. c3y1mavw4g.yoursite.com

    2. Replace ${CONTAINER_JS_ID} with with the container-js-id you got from Ingenious. e.g. y16rm8ykxy.js

    3. Replace ${WEBCONTAINER_ID} with your Web Container Id.

  8. If you want to use the preview mode in Google Tag Manager:

    1. Set the tagging domain (c3y1mavw4g.yoursite.com in our example) in the container settings.

...