Reveal with Google Tag Manager (GTM) and the dataLayer

If you have Reveal Premium, you will be able to push Reveal data to the dataLayer. To easily do so, you'll just need to create following tag inside of GTM.
 
 
1. In Google Analytics, setup your custom dimensions. These are the recommended attributes, and corresponding dataLayer variable (you'll use this column for step 3).
 
 Attribute  dataLayer variable
 Traffic Type reveal.type
 Company Name reveal.company.name 
 Company Domain reveal.domain 
 Industry reveal.company.category.industry
 Sub Industry reveal.company.category.subIndustry
 Industry Tags reveal.company.tags
 Employee Range reveal.company.metrics.employeesRange
 Estimated Revenue Range reveal.company.metrics.estimatedAnnualRevenue
 Global Alexa Rank reveal.company.metrics.alexaGlobalRank
 HQ Country reveal.company.geo.country
 HQ State reveal.company.geo.state
 HQ City reveal.company.geo.city
 SIC Code reveal.company.category.sicCode 
   
 Tech Stack reveal.company.tech
 
2. Create a Clearbit Reveal Tag as displayed (copy paste the text under the image and update with your key - this can be found in your dashboard under APIs):
 
Screen_Shot_2019-06-25_at_2.53.21_PM.png
<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>
NOTE: If you want to change the triggering for this tag later on for a non-standard setup, you can.

3. Create the variables as needed. Here is an example for company name. The Data Layer Name should use "company.name" and the Default Value and format value ("Convert false to...") should be set to "(Non-Company)":

Screenshot_2018-09-19_14.38.44.png

 **It is HIGHLY ENCOURAGED for you to also include the traffic type by adding "reveal.type" as a custom dimension. This allows our team to help ensure a correct implementation. Please note: this is very different from the company type attribute**

 

4. If you don't have a Google Analytics tag, you'll need to create one. Be sure to update with the correct UA-Tracking ID and map the indexes in the same order asyou set in step 1 inside of Google Analytics. The Dimension Values will be the same ones you created from the previous step. 

GTM_GA_SET_CD.png

 

5. Setup the Custom Event with the specific event name of "Clearbit_Loaded" as you configured the event name in step 2 above.

Screenshot_2018-09-19_14.37.51.png

6. Select Tag on the left hand menu and Create the following event:

Screenshot_2018-09-19_14.38.02.png

 

7. Save and Deploy your GTM tag!

Please reach out to your Customer Success Manger if you have any further questions.