Setting Up Reveal with Google Optimize
Clearbit Reveal in Google Optimize lets you test and build analysis around unique user experiences on your company’s website.
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
First you'll need to sign into Google Optimize and go through the setup steps. You'll need to link it to your Google Analytics account as demonstrated below.
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?variable=reveal&authorization=YOUR_KEY"></script>
Important: a Clearbit publishable key is required and this can be found in your Clearbit Dashboard. Replace YOUR_KEY above with your publishable key.
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:
<!-- This snippet connects your website to Clearbit Reveal --> <script src="https://reveal.clearbit.com/v1/companies/reveal?variable=reveal&authorization=YOUR_KEY"></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>
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. To customize the existing page dependent on the visitor choose A/B test, to redirect them to a new page choose Redirect test. If in doubt, pick A/B test.
For questions you may have, feel free to reach out to us at support@clearbit.com!
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