Managing multiple tags on your website can be a hassle, but a tag manager simplifies the process by handling all those snippets for you. This article shows you how to deploy the Demandbase Tag to your website using Google Tag Manager (GTM).
Prerequisites
- You must have Admin privileges or be assigned to a permission set with the required Demandbase settings access.
- You must have a Google Tag Manager account with 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:
- Select Page URL
- Select matches RegEx
-
Enter .*
Important: Make sure to include the period before the *
Tip: In most cases, you don't need to add more event conditions.
- 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), see Check if Demandbase Tag is Blocked by CSP.