If the Demandbase Tag is not working as expected, verify that your website uses the correct tag, the tag is firing and returning data, and your Content Security Policy (CSP) allows the required Demandbase domains.
Verify That Your Website Uses the Correct Demandbase Tag
- Open a web page where you deployed the Demandbase Tag.
- Right-click anywhere on the page and select Inspect.
- Click the Elements tab.
- Press Ctrl+F (Windows) or Cmd+F (Mac).
- In the search box, enter
tag.demandbase.comand press Enter until you find the three-line Demandbase Tag code snippet. Verify that the code snippet matches the tag in Settings > Demandbase-Wide Settings > Tag Configurations > Your Demandbase Tag.
Tip: See Deploy Demandbase One Tag for instructions on accessing and deploying your tag.
Check if the Demandbase Tag Is Firing and Returning Data
The Demandbase IP-API returns firmographic data for companies identified by IP address or cookie. You can verify that the tag is firing by inspecting the API request and response in your browser's developer tools.
- Open a web page where you deployed the Demandbase Tag.
- Right-click anywhere on the page and select Inspect.
- Click the Network tab.
- In the filter box, enter
ip.json. - Reload the web page to capture the API request.
- Click All to display all network requests.
Tip: If the Demandbase Tag is firing, you should see anip.jsonrequest in the Name column. In the Name column, click the
ip.jsonrequest.- Click the Headers tab and check the Status Code under General.
- 200: The API request succeeded.
-
4xx or 5xx: The API request failed.
Important: An invalid or expired tag key is one possible cause of a failed API request. Contact Demandbase Support for assistance.
Click the Preview tab to view the firmographic data returned by the API.
Important: A successful API response confirms that the request succeeded, but firmographic data may not be available for every visitor.
Check Whether Content Security Policy Blocks the Demandbase Tag
Your website's Content Security Policy (CSP) can prevent the Demandbase Tag from loading or communicating with Demandbase endpoints.
- Open a web page where you deployed the Demandbase Tag.
- Right-click anywhere on the page and select Inspect.
- Click the Console tab.
Check for an error similar to:
Refused to load the script because it violates the following Content Security Policy directive.
This error indicates that your website's CSP is blocking a required resource.-
Update your website's CSP to allow the required Demandbase domains for the applicable directives.
Tip: Forconnect-src, Demandbase recommends allowing*.company-target.comto cover the required endpoints. If your organization restricts wildcard domains, allow the specific endpoints required by your implementation.CSP Directive
Domains to Allow
script-src/script-src-elem*.demandbase.comscripts.demandbase.comtag.demandbase.comtag-logger.demandbase.comconnect-src*.demandbase.com*.company-target.comapi.company-target.comsegments.company-target.coms.company-target.comframe-src*.company-target.comimg-src*.rlcdn.com Reload the page and check the Console and Network tabs to confirm that the CSP errors are resolved and the Demandbase API requests succeed.