Integrate Reveal Analytics to Google Analytics via gtag.js

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:

Please reach out to your CSM to enable the correct entitlement for gtag.js

<script src=""></script>

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

let reveal_gtag_map = {
  'custom_map': {
'dimension1': 'type',
'dimension2': 'companyName',
'dimension3': 'companyDomain',
'dimension4': 'companyIndustry',
'dimension5': 'companySubIndustry',
'dimension6': 'companyEmployeesRange',
'dimension7': 'companyEstimatedAnnualRevenue',
'dimension8': 'companyAlexaRank',
'dimension9': 'companyCity',
'dimension10': 'companyState',
'dimension11': 'companyCountry',
'dimension12': 'companySicCode'
//This snippet will fire with whichever tracking IDs want the mapping passed to
gtag('config', 'UA-XXXXXXX-1', reveal_gtag_map);
gtag('config', 'UA-XXXXXXX-2', reveal_gtag_map);

let company =;
gtag('event', 'Clearbit', {


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