Install Clearbit Tag

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


Skip ahead to: 

Install Clearbit Tag on Website

  1. In Clearbit, click the Configuration tab in the sidebar.
  2. Copy the Clearbit tag snippet from the Configuration page.
  3. Paste it directly before the closing </head> tag in your website's HTML.
    Enter the following line of code as shown below.

Please note: While Clearbit will load synchronously—important if you depend on personalization—the tags it manages will be appended asynchronously by default.


Set Your Allowed Referrers

After you installed the snippet add the domains 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.

x-allowed-referrers.png

Installing Clearbit Tag with Google Tag Manager

  1. Open Google Tag Manager, choose your container, and 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.
  4. Copy the paste the code in your Custom HTML tag in Google Tag Manager.

x-gtm-tag.png

 

Set Your Allowed Referrers

After you installed the snippet add the domains 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.

x-allowed-referrers.png

How to Verify That Your Clearbit Tag is Working

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

Visit the companies dashboard to see your live web traffic. Look for companies with recent Last Path and Last Visit At activity.

mceclip0.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, allowing Clearbit to track users.

 

Related Content:

Troubleshoot the Clearbit Tag
Implement Identify Calls on Your Web Forms