Experimentation

Experimentation is the practice of making your site more effective by changing content or functionality, comparing the results with the prior version, and picking the improvements that have measurable effect.

When done right, it is a powerful pattern to improve conversions, engagement, and visitor experience. There are three main pitfalls to avoid when looking to adopt the practice:

  1. Too little: most companies are not experimenting enough, and when they do, they experiment with too little traffic to get meaningful results.
  2. Too slow: many experimentation frameworks slow the site down so much that the potential new conversions can’t make up for the lost traffic and bounces due to slow rendering
  3. Too complex: if it takes too much time to set up a new experiment, then fewer experiments will be run.

For sites running on Adobe Experience Manager, there is the experimentation plugin that allows developers to add an experimentation capability to their sites. Three things make this approach different:

Follow the rest of this guide to set up your first experiment. There are a few terms that you will find used repeatedly:

Experiment Variants

Experiment variants are the easiest way to get started with experimentation. This approach uses the page you already have as the control, you then create a challenger page that will replace the control for some of your visitors. In your challenger page, you can test different variants of your hero blocks, different page layout or call-to-action (CTA) placements and verbiage.

As long as you stay within the established design language of your website and use existing block functionality you should be able to set up an experiment variant and send it to production in a matter of a few minutes using your established authoring tools.

Experiment Identifier

Every experiment should have its own identifier for tracking and analytics purposes.
A good starting point is to come up with a good, unique identifier for your experiment, called the “Experiment ID”.
Experiments are often numbered linearly or correlated to their Issue ID in an issue tracker or management system that is used. Experiment IDs often use a prefix for the project. Examples are OPT-0134, EXP0004 or CCX0076.

Create your Challenger Page

By convention it is recommended to create a folder with a lowercase experiment ID in your /experiments/ folder (for example /experiments/ccx0076/) which is where all the pages for your challenger variants live.

Your experiments folder will look something like this:

Once the folder has been created, put a copy of your control page into that folder, and apply the changes on the page that you would like to test as part of your experiment variant. As an example let’s assume we have the following page on the website that we want to run an experiment on.

Your copy of the challenger placed in the experiments/<experiment-id> folder might look like this:

Preview and publish the challenger page using the sidekick and when you are done authoring the challenger page, the URL of the published challenger will be used in the next section - setting up the experiment.

Set up your Experiment

As soon as you have your challengers ready to go, all you need to do is to go back to the control page and add some metadata indicating that this page is now part of a test.

There are two metadata rows that need to be added for an experiment variant.

Experiment : containing your experiment ID

Experiment Variants: containing URLs for all the challengers of this page, separated by line breaks if you have more than one challenger

See example below:

For an experiment variant the traffic split between all the variants (control + challengers) is automatically set to an even distribution. If you have one challenger, there will automatically be an even 50/50 split between control and the challenger. If you have 2 challengers, you will automatically see a third of the traffic allocated to control and each challenger and so on.

You can override the traffic split via metadata. For more information, see https://github.com/adobe/aem-experience-decisioning/wiki/Experiments#authoring

Preview and Stage your Experiment Variants

As soon as you are ready to preview and stage your experiment you can preview the control page with the additional metadata. Whenever you are previewing a page that has a running experiment, you will see the experimentation overlay in your .hlx.page preview environment that lets you switch between the variants and gives you confidence that your test is setup correctly and ready to be launched.

Authors can get quick insights on the performance of experiments being run on the production site. These insights are helpful in making a decision about the duration of the experiment, but also about which variant is best suited for production.

The data collection to measure the effectiveness of each variant is based on Real User Monitoring.

Send your Experiment Variant to Production

To send your experiment to production and collect data about the performance of each variant, the only step left is to publish the control page as well as each of the challenger pages.

Running Experiment Variants on Multiple Pages

Some experiments include changes across multiple pages. If you would like to run experiments across multiple pages, all you need to make sure is to use the same experiment ID in metadata across multiple pages and in case you have multiple challengers, make sure that your challenger URLs in the Experiment Variants metadata field are sequenced corresponding to their challengers across pages.

Questions or Ideas?

Please contact the community via Discord.