Deploy Demandbase One Tag via Google Tag Manager (GTM)

  • Updated

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

  1. In Demandbase, from the left navigation bar, go to Settings_N.png Settings > Demandbase-Wide Settings > Tag Configurations > Demandbase Tag tab.
  2. Scroll down to Your Demandbase Tag and click Copy.
    tag.png
  3. In GTM, go to the Workspace Overview page, and click Add a new tag.
    1.png
  4. Enter a name for the tag, such as My Demandbase Tag.
    2.png
  5. Click the Tag Configuration card and select Custom HTML.
    3.png
  6. In HTML box, paste the Demandbase Tag code snippet, and click Save.4.png
  7. When prompted, click Save Tag.
    5.png
  8. 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.
  9. Click New.
  10. Give the new trigger a name, such as All Pages After GTM.
    6.png
  11. Click the Trigger Configuration card and select DOM Ready.

    7.png

  12. 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.
      8.png
  13. Click Save.
  14. From the Workspace page, click Tags, and select the new tag you created.9.png
  15. Scroll down to Choose a Trigger and select the new trigger you created10.png
  16. Click Save.
  17. From the Workspace Overview page, click Submit to publish your changes.
  18. (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

Was this article helpful?

9 out of 11 found this helpful