This article will help you:
  • Integrate Adobe Analytics (Omniture SiteCatalyst) to read experiment data from Optimizely
  • Add Adobe Analytics integration code to your page
  • Set up custom conversion variables (eVars) and traffic variables (prop)
  • Solve common troubleshooting issues with integration
  • Integrate Adobe Analytics within Personalization

If you use Adobe Analytics (formerly known as Omniture SiteCatalyst) for analytics on your website, you may wish to view analytics details for the visitors who have seen a given variation in your Optimizely experiment.

 
Tip:
  • Have a question about integrating Optimizely with your Analytics Platform? Head over to the Optimizely Community to post a discussion and see what others are talking about.
  • Using Adobe Tag Manager? A 3rd party solution has been provided by some customers for how to complete this integration when using DTM: http://www.searchdiscovery.com/blog/...ely-adobe-dtm/. This is not a supported use case, but may be helpful for users looking to integrate their experiments through DTM.

To enable the Adobe Analytics integration, go to the Integrations tab on the Home page. Select the Adobe Analytics integration, and click On in the right sidebar.

To enable the integration for a specific experiment, go to that experiment in the Editor, and select Options > Integrations.

Then check the Adobe Analytics box.

Next, you'll set the Conversion variable and Traffic variable tags. In Adobe Analytics, prop and evar variables are used to pass information along with a tracking call to specify additional information about the visitor. For each experiment, the integration uses a unique evar and/or prop variable to pass along the Experiment Name and Variation Name that the visitor is currently bucketed into (if any). For example, the evar/prop variable might contain a value like this:

“Optimizely_HomepageTest: Variation1”

This integration allows you to leverage all your existing reports in Adobe Analytics by viewing them through a custom “Optimizely” segment and seeing how users grouped into certain variations behave.

Make sure that your Optimizely experiment is running for this integration to work. 

Set up the Integration

Optimizely uses Adobe Analytics "Custom Commerce Variables" to tag your visitors with the experiments and variations to which they've been added. Configuring Optimizely to begin sending this information to Adobe Analytics requires three steps:

  1. Add the following JavaScript code to your Adobe Analytics s_code.js file (or directly on your page after the s_code.js load and before the Adobe Analytics tracking call is made):

     // Optimizely Adobe Analytics SiteCatalyst Integration
     window.optimizely = window.optimizely || [];
     window.optimizely.push("activateSiteCatalyst");
    
    

    The location and timing of this code are critical, and will need to be after the bulk of your Adobe Analytics code is defined but before any Adobe Analytics tracking call. This timing is important because Optimizely needs to know when there’s a tracker object to append information to, but not be so late that the tracking call has already been sent and there’s no reason to append to it anymore.

  2. Enable the Adobe Analytics integration in Optimizely after selecting Options > Integrations in the Editor (see above).

  3. Select an "eVar" you'd like Optimizely to use. This eVar should not already be in use by another part of your site, or by another currently-running Optimizely experiment.

Where should this code live?

We recommend adding this code to your s_code.js file in the plugin section, however if your Adobe Analytics tracking call is made outside of your s_code.js file and you do not wish to add the integration code directly to your s_code.js file, you could use the following setup:

<html>
  <head>
    <script src="//cdn.optimizely.com/js/XXXXXXX.js"></script> 
  </head>
  <body>
    ...
    <script type="text/javascript" src="/js/omniture/s_code.js"></script> 
    <script>
      // Optimizely Adobe Analytics SiteCatalyst Integration code
      window.optimizely = window.optimizely || []; 
      window.optimizely.push("activateSiteCatalyst");
    </script>
    <script>
      // Omniture tracking call made
      s.t();
    </script>
  </body>
</html>

 

Specify a custom s variable 

Some sites use custom Adobe Analytics implementations with special s variable names. The s variable contains all of the tracking tags to be sent to Adobe Analytics for a given visitor.

If you wish to specify a custom s variable, you can add a parameter to the Optimizely API call, as shown below. (If the parameter is omitted, Optimizely will use s by default.) Leave "sVariable" as is, and specify your custom object as a variable, not a string; don't add quotes when replacing my_custom_s_var.

 
// Optimizely Adobe Analytics SiteCatalyst Integration
window.optimizely = window.optimizely || [];
window.optimizely.push(['activateSiteCatalyst', {"sVariable": my_custom_s_var}]);


 

Check the custom report for your Optimizely experiment

When you log in to your Adobe Analytics account, you should see a dashboard that looks something like this:

This is SiteCatalyst 15. If you use a previous version you will not see this page.

To get to the Optimizely custom variable, click Custom Conversion > Custom Conversion XX-XX > Optimizely (vXX). The XX should correspond to whatever eVar you selected when turning on the Optimizely integration.



Clicking the Optimizely custom conversion will take you to the report.



To check how specific custom events performed across variations click the Add Metrics button at the upper-right of the table. That should bring up the following menu: