Setting Up Reveal with Google Tag Manager and the dataLayer
Attribute | dataLayer variable |
Clearbit - Traffic Type | reveal.type |
Clearbit - Company Name | reveal.company.name |
Clearbit - Company Domain | reveal.domain |
Clearbit - Industry | reveal.company.category.industry |
Clearbit - Sub Industry | reveal.company.category.subIndustry |
Clearbit - SIC Code | reveal.company.category.sicCode |
Clearbit - NAICS Code | reveal.company.category.naicsCode |
Clearbit - HQ Country | reveal.company.geo.country |
Clearbit - HQ State | reveal.company.geo.state |
Clearbit - HQ City | reveal.company.geo.city |
Clearbit - Estimated Revenue Range | reveal.company.metrics.estimatedAnnualRevenue |
Clearbit - Employee Range | reveal.company.metrics.employeesRange |
Clearbit - Global Alexa Rank | reveal.company.metrics.alexaGlobalRank |
2. For each one of the custom dimensions above that you have created within Google Analytics, create a respective "Data Layer Variable" within Google Tag Manager.
Here is an example for setting up Clearbit - Company name as a variable: The Data Layer Variable Name should use "reveal.company.name". The Default Value and format value ("Convert false to...") should be set to "(Non-Company)":
3. Create a "Custom Event" trigger with the Event name of "Clearbit Loaded". This will be referenced later on.
4. Next we'll create a "Google Analytics Setttings" variable. Under "More settings", we will map our Data Layer Variables to their respective Custom Dimensions.
Be sure to update with the correct UA-Tracking ID and map the Data Layer variables to their corresponding Custom Dimension index inside of Google Analytics — the Dimension Values will be the same ones you created from Step 2.
5. Select Tag on the left hand menu and Create the "Google Analytics - Universal Analytics" tag:
Under the "Triggering" section, make sure to set this to use the Custom Event trigger we created in Step 3.

<script>
function pushToDataLayer(response){
var reveal = {reveal:response};
dataLayer.push(reveal);
dataLayer.push({event:"Clearbit Loaded"});
return true;
}
</script>
<script src="https://reveal.clearbit.com/v1/companies/reveal?authorization=pk_YOUR_KEY&callback=pushToDataLayer"></script>
7. Save and Deploy your GTM tag!
Please reach out to your Customer Success Manger if you have any further questions.
Articles in this section
- Setting Up Reveal with Google Analytics (analytics.js)
- Setting Up Reveal with Google Analytics (analytics.js) via Google Tag Manager
- Setting Up Custom Dimensions for Reveal in Google Analytics
- Setting Up Reveal with Google Tag Manager and the dataLayer
- Setting Up Reveal with Google Analytics (gtag.js)
- Setting Up Reveal with Optimizely
- Using Reveal for Optimizely Audiences & Variations
- Setting Up Reveal with Google Optimize
- Pushing Data to Specific or Multiple Google Analytics Properties
- Adding a Google Analytics Tracker Name via Google Tag Manager