Skip to main content


Optimizely Knowledge Base

Integrating Optimizely with Moat

This article will help you:
  • Enable the Moat integration in Optimizely

Moat is an analytics tool for tracking ad viewability and other ad metrics. With the Optimizely integration, you can measure the impact of your Optimizely experiments on ad metrics tracked by Moat. Optimizely automatically sets properties in Moat so you can segment metrics for each experiment and variation.

This guide helps you enable the Moat integration in Optimizely. In order to complete the integration, you'll need to contact your Moat account manager.

Enabling Moat in Optimizely

To enable Moat analytics with your Optimizely project, go to the Integrations tab on the Home page and toggle the button to On

Enabling the integration will set a global JS variable with the active experiment and variation names for Moat.

Under Settings, you can enable the integration by default in all new experiments. Click the Moat checkbox, then Save.

If you don't want to enable the Moat integration by default for all new experiments, you can enable it for individual experiments. Go into your experiment’s Editor and select Integrations in the Options Menu.

In the integrations pop-up, click the Moat checkbox and then Apply.

Make sure that your Optimizely experiment is running.

View your Optimizely experiments in Moat

To enable the Optimizely tab displayed in your Moat Instance, email your Moat account manager with the following steps:

  1. First, set up a test page to help Moat verify the integration.

    Start an A/A test with the Moat integration enabled. Set traffic allocation to 100%.

  2. Send the page link to Moat with the experiment running, so that your account manager can verify that the data is being passed correctly from Optimizely to Moat.

  3. Tell Moat you want the Default DFP Hierarchy:

    Ad Server data: Ad Unit1 -> Ad Unit 2 -> Ad Unit 3 -> Creative
    ​Optimizely data: Experiment -> Variation


The Default DFP Hierarchy is the most common structure, but you can use another structure if you prefer. You'll need to coordinate with your Moat account manager to customize how you'd like to see your data segmented.

Once Moat is enabled on your account, go to your Moat dashboard. Click Optimizely Experiment to see a list of your experiments with corresponding metrics.

Click on the experiment name to your variations and how they performed.


If your experiment has a low number of impressions, the name will appear as “other.”