Set up the Clearbit tag with HTML

The Clearbit tag is a snippet of JavaScript that collects and sends data from your website to Clearbit, revealing the companies browsing your website and identifying users.

1. Add the javascript to your website HTML

Copy the JavaScript snippet from the clearbit.js configuration page and paste it directly before the closing </head> tag in your website's HTML.

2. Set your Allowed Referrers

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.

3. Verify that your 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.


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.

Not seeing data? Check our troubleshooting guide here →

Next: Identify users who fill out a form