Blast Analytics and Marketing

Analytics Blog

Supporting Leaders to EVOLVE
Category: Digital Analytics

How to Integrate Adobe Test&Target with SiteCatalyst & Google Analytics

August 7, 2012

Adobe Test and Target is a robust website optimization tool. The Test&Target product allows you to design tests and create audience segments to target content. Test & Target provides its own reporting interface to analyze the results of a test.

This is great, but you might want to analyze the performance of a test in your web analytics tool. When you have the test variation/identification data in your web analytics tool, your analysis is more flexible and less dependent on the limited data set contained in Test&Target.

Note: You should be aware that T&T does calculate conversions and visits differently than your web analytics tool, so don’t be alarmed. For example, once a visitor converts, then a returning visitor will count as a new visitor in T&T reports but they won’t in your web analytics tool.

If you are familiar with Adobe Test & Target as well as SiteCatalyst, you may be saying to yourself right now that Adobe already provides an integration with the two products; all you have to do is ask and they’ll give you a plugin and code snippet. This is true and this works great if you place your SiteCatalyst code at the bottom of the html source.

More often than not though, we prefer to implement the SiteCatalyst code up near the top of the <body> tag of the html source (to increase accuracy). We’ll be showing you a solution for this issue. You will also be able to use this same technique to integrate Test&Target with Google Analytics; we’ll be showing you both integrations.

Create a Plugin in Adobe Test&Target

Whether you use Adobe SiteCatalyst, Google Analytics, or another web analytics tool, you’ll first want to create a plugin in Test and Target.

Create an HTML Offer

  1. Login to Adobe Test & Target as an administrator
  2. Add a new HTML Offer (Offers > Create > HTML Offer)
  3. Configure and paste in the JavaScript code (with the <script> tags intact). You’ll want to remove the Google Analytics code or SiteCatalyst code if it doesn’t apply to you. Additionally, for each, be sure to customize either the eVar number or custom variable slot so that it works with your implementation.
    Here’s the script:
[code lang="js"]
&lt;script type="text/javascript"&gt;
try {
     if (typeof(s_tnt) == 'undefined') {
          var s_tnt = '';
     }
     s_tnt += '${campaign.id}:${campaign.recipe.id}:${campaign.recipe.trafficType},';

     var sCampaignName = '${campaign.name}';
     var sRecipeName = '${campaign.recipe.name}';

     if (sCampaignName.length &gt; 0 &amp;&amp; sRecipeName.length &gt; 0) {
         //remove the next two lines if you don't use GA
          _gaq.push(['_setCustomVar',1,'TNT:' + sCampaignName,sRecipeName,1]);
          _gaq.push(['_trackEvent','TnT',sCampaignName,sRecipeName,undefined,true]);

          //remove this function as well as the scTrackTNT() call if you don't use SiteCatalyst
          function scTrackTNT(){
               var s=s_gi(s_account);

               s.linkTrackVars='eVar19';
               s.linkTrackEvents='None';

               //variable for TNT classifications
               s.eVar19 = sCampaignName + ':' + sRecipeName;

               s.tl( true , 'o' , 'TnT Tracking' );
          }
          scTrackTNT();
     }
}
catch(e){}
&lt;/script&gt;
[/code]

See the SiteCatalyst and Google Analytics sections below to learn about what this ends up doing.

Activate the HTML Offer as a Plugin

  1. Go to Configuration > Plugins and add a new JavaScript plugin
  2. Name your plugin whatever you like
  3. For the ‘Serve condition’, select ‘First mbox request only’
  4. For the ‘JavaScript offer’, select the name of the HTML Offer that you previously added
  5. Select an Mbox to serve this for. IMPORTANT NOTE: You’ll have to go in and switch this to the proper mbox that contains a test whenever you want a test tracked.
  6. Check the box that says ‘Serve in production’
  7. Test it out. We like using a debugging proxy tool such as Charles Proxy to look for the tracking pixel request that is generated.

Create Test and Target Plugin

Adobe SiteCatalyst Integration

For Adobe SiteCatalyst, the script we used in Test&Target is configured to use eVar19 to capture this data. It fires an additional server call on pages where this mbox is running and fires it after the mbox loads (via custom link tracking code). The results that you see in your SiteCatalyst report will look like:

SiteCatalyst Test and Target Integration

Google Analytics Integration

In Google Analytics, the script we used in Test & Target is configured to use custom variable slot #1. We use the visitor-level scope so that it persists across visits and you can tie the version of the page the visitor saw even if the conversion occurs in a different session. We fire a non-interaction event to send the custom variable data to GA (it is very important that you use the last parameter of true to make this a non-interaction event as otherwise this will impact your bounce rate).

The results that you see in your Google Analytics data can be found in the custom variable slot as well as in the event tracking reports. You can then leverage this data to create an advanced segment and analyze the performance of each variation segment.

Google Analytics Test and Target Integration

Next Steps

Once you have the Test&Target data flowing into your web analytics tool, you can then leverage the data by creating segments and applying those segments to your reports. This additional layer of data will be helpful to determine the performance of a variation against multiple conversion points and behavioral metrics that are of interest.

Joe Christopher
About the Author

As Vice President of Analytics at Blast Analytics, Joe leads a team of talented analytics consultants responsible for helping clients understand and take action on their vast amounts of data, to continuously improve and EVOLVE their organizations. With over 20 years of experience in analytics and digital marketing, Joe offers a high-level of knowledge and guidance to clients across all industries. He is an expert in all major analytics platforms including Google Analytics and Adobe Analytics, as well as various tag management systems such as Tealium and Adobe Launch. He also consults on data visualization, data governance, and data quality strategies. Having extensive expertise in many areas, has enabled Joe to become a well known thought leader and speak at industry events such as Tealium’s Digital Velocity series. Joe remains on the pulse of various information technology, programming languages, tools and services, keeping Blast and its clients on the leading edge.

Connect with Joe on LinkedIn. Joe Christopher has written on the Blast Digital Customer Experience and Analytics Blog.