Set Up Clearbit Reveal with Google Analytics

Last Updated: May 23, 2022

❗Disclaimer: If you signed up after Feb 15, 2022, please follow these instructions on Set Up Clearbit with Google Analytics here.

Reveal equips marketers with deep insights about their web traffic. Behind the scenes, Reveal dynamically links IP addresses with specific companies and their relevant firmographics & technographics. Reveal currently comes with a Google Analytics integration out of the box and takes all of 15 minutes to get up and running!

💡 Clearbit Tip: This integration is especially useful for the following use-cases:

  • Knowing which companies are browsing your site in real-time, even if they haven't submitted a form.
  • Determining attribution & conversion statistics for key accounts and target segments.
    Customizing engagement for key accounts or company profiles (by size, vertical, or even tech stack).
  • Delivering dynamically personalized content to your site visitors.

1. If you already have Google Analytics set up on your site, you can skip this step. Otherwise, you'll need to place the Javascript snippet below within the <head> tag of your website. Don't forget to replace the UA-#####-Y account ID below with your respective GA property ID.

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga
('create', 'UA-#####-Y', 'auto');
ga('send', 'pageview');
</script>

2. Set Up Custom Dimensions in Google Analytics.

3. Add the following code snippet to your site directly below the section above. You'll need to replace the UA-#####-Y account ID below with your GA property ID, and replace pk_YOUR_KEY in the 'authorization' parameter of the second script to your publishable key. Finally, you will want to adjust the mappings to match your Custom Dimension configuration in Google Analytics.

<script>
ga(function(){
ga_trackers=[]; ga.getAll().forEach(function(x,i){ ga_trackers.push(x.get('name'))}); ga_trackers.forEach( function(gaName){ ga(gaName + '.require', 'Clearbit', {"mapping":{
"type":"dimension1",
"companyName":"dimension2",
"companyDomain":"dimension3",
"companyType":"dimension4",
"companySector":"dimension5",
"companyIndustryGroup":"dimension6",
"companyIndustry":"dimension7",
"companySubIndustry":"dimension8",
"companyCountry":"dimension9",
"companyState":"dimension10",
"companyCity":"dimension11",
"companyEstimatedAnnualRevenue":"dimension12",

"companyEmployeesRange":"dimension13"}
}); });
});
</script>
<script async src="https://ga.clearbit.com/v1/ga.js?authorization=pk_YOUR_KEY">
</script>