Validate the Demandbase Tag Transmits Data

  • Updated

Context

This article helps you validate the flow of data from the Demandbase Tag to Google Analytics (GA) after deploying the tag directly on your pages or via a tag manager. The Steps section below also documents how to troubleshoot problems. We use Google Chrome as an example of what browser you can use to inspect the tag.

The general procedure checks that the Demandbase Tag passes the data. You go to a webpage where the tag is deployed, which triggers the tag to fire. You then go to the Chrome developer console to see the status of the data flow:

  • Red indicates that the tag might not be configured correctly because data doesn’t appear to come to GA.
  • Green indicates that the tag sends data. At a later point in your setup of GA, you’ll verify that GA receives the data.

Steps

  1. In Google Chrome, right-click on a page where the Demandbase Tag is deployed and select Inspect in the drop-down menu. This opens the Chrome developer console. DB_homepage_Inspect_choice.png
  2. Locate the Demandbase Tag in the HTML:
    a. Click the Elements tab.
    b.
    Press CTRL+F (Windows)/Cmd+F (Mac) to open the search functionality.
    c. In the search bar, type tag.demandbase.com and press Enter a few times until you reach a 3-line code snippet on the page similar to the one in the screenshot below. 
    code_snippet_on_Elements_tab.png
  3. After you've confirmed that the Demandbase Tag is in the page's HTML, confirm that the API call to Demandbase is firing properly.
    a. Click the Network tab at the top of Chrome developer console.
    b.
    Enter ip.json into the search bar and then find an entry in the code Initiator column that contains .min.js.
    DB_home_ip.json_search_results.png
  4.  Click the search result that contains .min.js to verfy the API request functions properly:
    • If the Status Code is green, then the API request functions correctly. 
    • If the Status Code is red, then the request to Demandbase's API endpoint doesn’t function. Red in the Status Code indicates that the key used in your Demandbase Tag might be invalid or expired. 
      DB_home_ip.json_Status_Code.png