Try our conversational search powered by Generative AI!

Support for AB Tests with content & variants in multiple languages.

Fixed in

EPiServer.Marketing.Testing 2.4.0

(Or a related package)

Created

May 22, 2017

Updated

Oct 23, 2020

State

Closed, Acceptance tests pass


Description

Before this story, Episerver supported creating an AB test in any language. However, on multiple language sites, the tests did not function properly or as expected.

The cases we were aware of were...

  • 2 sites (English & Swedish). A Swedish version of a page is edited and put under test. If you go to the English site and hit the page under test, it triggers a test and swaps in the Swedish variant. Additionally, changing the URL to sv gives a 404.
  • 2 Sites (English & Swedish). If one language site page is edited and put under test, it prevents the other language site page from being edited.

This story provides these solutions.

  • Saves a test with a corresponding language (so tests will be site-language specific).
  • When checking for an active test during loaded content, an active test needs to be a GUID as well as current site language.
  • For locking content: content should only be locked if the page is under test, and the test is in the current language. Other languages should be able to edit content and create their own tests.