Troubleshoot Demandbase Tag

  • Updated

Context

After deploying the Demandbase Tag, issues may arise if it's deployed incorrectly, expired, or blocked by Content Security Policy (CSP).

Steps: Check if Using Correct Demandbase Tag

  1. Go to a web page where you've deployed the Demandbase tag.
  2. Right-click on the page and click Inspect.
    Tag Inspect.png
  3. Click the Elements tab.
  4. Press CTRL+F/Cmd+F.
  5. In the search bar, enter tag.demandbase.com and press Enter repeatedly until you see a 3-line code snippet (see screenshot).
    Tip: The code snippet should be the same as the tag in Demandbase Settings > Demandbase-Wide Settings > Tag Configurations > Your Demandbase Tag. See Deploy Demandbase One Tag.Tag Search.png

Steps: Check Demandbase Tag Status

  1. Go to a web page where you've deployed the Demandbase tag.
  2. Right-click on the page and click Inspect.
    Tag Inspect.png
  3. Click the Network tab.
  4. In the search bar, enter ip.json.
  5. Go to the code that is executing from 'XXXXXXXX.min.js'
    tag json search.png
  6. Click the code.
  7. Click the Headers tab.
  8. Confirm the status code is green.
    Important: If the status code is red, this indicates the request to Demandbase's API endpoint is failing and the key used in the Demandbase Tag is invalid or expired. Contact Demandbase Support for assistance.Tag Status Code.png

Steps: Check if Demandbase Tag is Blocked by CSP

  1. Go to a web page where you've deployed the Demandbase tag.
  2. Right-click on the page and click Inspect.
    Tag Inspect.png
  3. Click the Console tab.
  4. If you see the error Refused to load the script... because it violates the following Content Security Policy directive, you must whitelist the following domains to ensure the tag script fires properly:
    • *.demandbase.com
    • *.company-target.com
      CSp Error.png

Was this article helpful?

5 out of 7 found this helpful