If you plan to use or do already use multiple types of tags on your website, you're likely using a tag manager to save time and avoid having to manually manage all of those different code snippets. This article walks through how to use Google Tag Manager (GTM) to deploy Demandbase Tag to your website. For instructions on how to deploy Demandbase Tag using Adobe Tag Manager, click here.
- Demandbase ABM Platform (Required)
- Google Tag Manager (Required)
To deploy Demandbase Tag using GTM follow these steps.
- Step 1: Copy the Demandbase Tag
- Step 2: Create a New Tag in GTM
- Step 3: Create a New Trigger
- Step 4: Add the Trigger to the Tag
1. Copy the Demandbase Tag
a. Log in to the Demandbase ABM Platform as an administrator and go to
Settings > Demandbase-Wide Settings > Tag Deployment.
b. Scroll down to Your Demandbase Tag and copy your Demandbase Tag code snippet.
2. Create a New Tag in GTM
a. Log in to GTM and click Add a new tag from the Workspace Overview page.
b. Type in a name for the tag, such as "My Demandbase Tag."
c. Click the Tag Configuration card and under the Custom tag type list, select Custom HTML.
d. Paste the Demandbase Tag code snippet into the body of the new tag, then click Save.
e. When prompted click Save Tag.
3. Create a New Trigger
Next you'll create a trigger to ensure the tag runs on pages only after the document object model (DOM) loads.
a. From the Workspace page click Triggers and then New. Give the new trigger a name, such as "All Pages After GTM."
b. Click the Trigger Configuration card and select DOM Ready from the Choose trigger type pane.
c. On the Trigger Configuration card, select Some DOM Ready Events and adjust the condition setting as follows.
- Select Page URL
- Select matches RegEx
- Enter .*
d. Click Save to save the trigger.
4. Add the Trigger to the Tag.
a. From the Workspace page, click Tags and select the new tag you created.
b. Scroll down to click the Triggering card, then select the new trigger you created.
c. Click Save.
d. From the Workspace Overview page, click Submit to publish your changes.