How to integrate Reveal into Google Optimize

Clearbit Reveal in Google Optimize lets you test and build analysis around unique user experiences on your company’s website.

Note: Reveal is currently in limited release! You’ll want to contact us to enable access.


Clearbit Reveal - Javascript installation

Integrating Reveal with Google Optimize takes just a few minutes. Here's a step-by-step:

Step 1 - Link your Google Analytics account with Google Optimize

Step 2 - Drop in Reveal Javascript 

You'll want to drop in a Reveal javascript snippet in the header before your Google Optimize site snippet.

<script src="https://reveal.clearbit.com/v1/companies/reveal?authorization=pk_XXXXXXXXXXXXXXX&variable=reveal"></script><br>

Important: a Clearbit publishable key is required and this can be found in your Clearbit Dashboard.

You’ll want to insert and place the snippet before the Optimize script to ensure that Reveal properties are available for use within Google Optimize like so:

<head>
<title>Optimize</title>

<!-- This snippet connects your website to Clearbit Reveal -->
  <script src="https://reveal.clearbit.com/v1/companies/reveal?authorization=pk_XXXXXXXXXXXXXXX&variable=reveal"></script>
  
<!-- Standard Google Analytics and Optimize script -->
  <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-XXXXXXXXX', 'auto');
  ga('require', 'GTM-XXXXXXXX');
  ga('send', 'pageview');
</script>
  
</head>


Step 3 - Choose an Experiment type

When you've defined your goal and how you want to test the hypothesis, pick the experiment type to use:

For questions you may have, please  get in touch with our Success Team.