Error Configuring Sitecore Multivariate Testing

859 views Asked by At

I'm trying to set up a basic Sitecore Multivariate test in Sitecore 6.5 (rev. 120796), but have run into the same error, repeatedly. The error occurs when I am in the Sitecore "Page Editor" mode.

First of all, I'm not able to "select" each of the content items on the page, and I'm not really sure why that is the case. But, I may not be 100% clear on what the requirements are for configuring a content item for an A/B test in Sitecore.

In the Sitecore Page Editor, when I highlight a content item and click the "red boxes" icon to bring up the "Test the Component" dialog, the "Test Content Item:" just says "[Not set]". When I then click the 3 dots to attempt to browse to a content item, I get a pop-up error message that simply says "an error occurred."

What are the requirements for a content item to be defined as a test variation in this version of Sitecore? Or, is there something else that needs to be done before attempting to configure the test variations in the Sitecore Page Editor?

1

There are 1 answers

1
Jay S On BEST ANSWER

In order to use A/B/Multivariate testing, your Sitecore website solution needs to support the idea of page components.

Each 'component' is a sublayout that pulls its content from a datasource item. The 'test' is essentially just swapping the datasource for the sublayout so you can test different content, much like you would setup DMS personalization.

If your content is not structured into page components, you cannot execute the tests. There are several companies out there that will audit your build to determine your solution's DMS-readiness, and you can probably get them to fix up your build to support DMS as well.

If you will be doing it yourself, here are the basic steps:

  1. Split up your page layout into sublayouts. At the very least, the portion that you want to test should be in its own sublayout.
  2. Create new component templates for your content that will be displayed in these sublayouts. This will be the data for your datasource.
  3. Create new content items from your new component templates to represent the data variations you want to try.
  4. Update the code for your sublayouts to access the Datasource property of the sublayout to find the content Item, instead of using Sitecore.Context.Item
  5. Using Page Editor, configure your page component datasource to pull from one of your new component content items.