Context
Managing multiple tags on your website can be a hassle, but a tag manager simplifies the process by handling all those snippets for you. If you're using Google Tag Manager (GTM), this article shows you how to efficiently deploy the Demandbase Tag to your website—saving you time and effort.
Prerequisites/Preparation
You must have Admin privileges or be assigned to a permission set with the required Demandbase settings access.
You must have have Google Tag Manager account and have Admin privileges.
Steps
- In Demandbase, from the left navigation bar, go to
Settings > Demandbase-Wide Settings > Tag Configurations > Demandbase Tag tab.
-
Scroll down to Your Demandbase Tag and click Copy.
- In GTM, go to the Workspace Overview page, and click Add a new tag.
- Enter a name for the tag, such as My Demandbase Tag.
- Click the Tag Configuration card and select Custom HTML.
- In HTML box, paste the Demandbase Tag code snippet, and click Save.
- When prompted, click Save Tag.
-
In GTM, from the left navigation bar, click Triggers.
Important: You're creating a trigger to ensure the tag runs on pages only after the document object model (DOM) loads. - Click New.
-
Give the new trigger a name, such as All Pages After GTM.
-
Click the Trigger Configuration card and select DOM Ready.
- On the Trigger Configuration card, select Some DOM Ready Events and adjust the condition setting as follows:
- Click Save.
-
From the Workspace page, click Tags, and select the new tag you created.
-
Scroll down to Choose a Trigger and select the new trigger you created
- Click Save.
- From the Workspace Overview page, click Submit to publish your changes.
-
(Optional) If your website has a Content Security Policy (CSP), you must whitelist the following domains to ensure the tag script fires properly:
- *.demandbase.com
- *.company-target.com