How do I integrate Reveal into Google Analytics?

If you are ready to integrate Reveal for Google Analytics, you can follow our setup wizard on your Clearbit dashboard to automate most of the process. Otherwise, follow the steps below.

 

How Can Reveal Help Me? -

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.

It's 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.
* Reveal currently comes with a Google Analytics integration out of the box and takes all of 15 minutes to get up and running!

To see guides on best practices, head here.

 

Create Custom Dimensions in GA  -

Step one is to create a set of custom dimensions within Google Analytics. You'll need to create a one-to-one mapping of Clearbit attributes to Google Analytics dimensions. Please note, GA integrations allows access to a subset of the full Reveal attributes list.

Navigate to Custom Definitions and Custom Dimensions within the Google Analytics Admin panel. Create a custom dimension for each of the properties below, with a 'Scope' of 'Session'.

More details on setting up Custom Dimensions in Google Analytics

You can choose to create as many or as few dimensions as you think is helpful, however you can only have up to 20 in GA. Make sure you keep a note of the dimension numbers, you’ll need those later.  

(We do recommend adding as many of relevant Clearbit dimensions from the beginning as you can so there aren't any gaps in your analytics.)

 

Adding the Clearbit Reveal Snippet  -

Add the Clearbit GA plugin code to your site  by inserting the script below underneath the Google Analytics standard "ga('create')" and "ga('send', 'pageview')" sections.

Be sure to change the key in the 'authorization' param to the publishable key, and take care to adjust the mappings to reflect the custom dimension numbers you created earlier. Here's a list of available attributes for our standard Google Analytics connector:

 

<script>
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",
"companyIndustry":"dimension4",
"companySubIndustry":"dimension5",
"companyEmployeesRange":"dimension6",
"companyEstimatedAnnualRevenue":"dimension7",
"companyAlexaRank":"dimension8",
"companyCity":"dimension9",
"companyState":"dimension10",
"companyCountry":"dimension11",
"companySicCode":"dimension12",
"companyTech":"dimension13" }}); });
</script>

<script async src="https://ga.clearbit.com/v1/ga.js?authorization=pk_YOUR_KEY">
</script>

 

Check out how to: Build a GA Dashboard with Clearbit Reveal Data