Install the Clearbit Tag

Last Updated: November 8, 2022

The Clearbit Tag is a JavaScript snippet that identifies companies and people who visit your website. You can add the Clearbit tag directly to your website, or use Google Tag Manager.

Skip Ahead to: 

Install Clearbit Tag on Website

  1. In Clearbit, click the Integrations tab in the sidebar, and click the Manage button.
    Screen Shot 2023-09-18 at 3.12.09 PM.png
  2. Click the Copy code button. 
    Screen Shot 2023-09-18 at 3.13.11 PM.png
  3. Paste it directly before the closing </head> tag in your website's HTML

📝 Please note: While Clearbit will load synchronously (within a few hundred milliseconds)—important if you depend on personalization—the tags it manages will be appended asynchronously by default.

Set Your Allowed Referrers

After you install the snippet add the domains, as well as any subdomains, that you would like Clearbit to track to the Allowed Referrers list. This is a security measure that will ensure your public API key won't be used on any other sites. There is no need to list specific paths or wildcards here.

x-allowed-referrers.png

📝  Please note: If you intend on building an audience in the Clearbit platform based on page views of a subdomain, you'll need to add the subdomain here.

Installing Clearbit Tag with Google Tag Manager

  1. Open Google Tag Manager, and choose your container to create a custom Clearbit HTML tag.
    If you are using the Clearbit Google Analytics integration, choose the container that contains your Analytics tag.
  2. Create a New Tag and name it. Select the Custom HTML Tag option.

    Screen_Shot_2019-05-27_at_9.58.20_PM.png

  3. Navigate to the Clearbit tag configuration page and select the Google Tag Manager tab.
    Screen_Shot_2022-02-28_at_2.14.21_PM.png
  4. Copy the paste the code in your Custom HTML tag in Google Tag Manager.
    Screen_Shot_2022-05-19_at_12.56.41_PM.png

How Can I Verify that the Clearbit Tag is Working?

Once the Clearbit tag is live on your website, and you have saved your Allowed Referrers, Clearbit will automatically identify and track the companies visiting your site.

To verify that the Clearbit Tag is receiving data, click the Test Integration button and look for the receiving data checkmark.

mceclip0.png

To verify that the tag is actively revealing IPs on your website, visit the Companies tab to see your live web traffic. Look for companies with recent Last Path and Last Visit At activity.
Screen_Shot_2022-02-28_at_2.17.08_PM.png

How Do I Track the People Visiting My Website?

If you want to reveal and track individuals on your website (as opposed to just companies) you will need to identify your users. This can be done by implementing Identify calls on your web forms with Marketo or HubSpot, allowing Clearbit to track users.

Can I Prevent the Clearbit Tag from Firing on Specific Pages or For Known Employees?

 Our customers sometimes like to configure the Clearbit tag so that it does not fire on every page within their domain, or for internal employees that view their own website so that it doesn't get counted as a Monthly Unique Visitor. Both of these goals can be accomplished by modifying your implementation on your website itself. For example, if you are using Google Tag Manager, you can easily set up page view filters to define when the script is or is not loaded on the website:

Alternatively, you could also use Google Tag Manager filters to not load the Clearbit Tag when one of your employees is on your website by pushing a Variable or sending an Event to the dataLayer, and using that information to prevent the Clearbit tag from deploying (e.g. if Employee = True, then do not deploy).

Related Articles