Plan A/B variants of a page
Compare two versions of a landing page.
Life cycle: Plan, example 19 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Add a mapping Path prefix
showcase+ Query parametervariant(priority 3000) beside the regular Showcase mapping. Since explayouts 1.4.42 the resolver does not cache an answer that depends on a Query parameter condition, so/showcaseand/showcase?variant=beach get their own layout on every request. Verified on the live installation: a mapping with Query parameterp643b=bon one article showedlayout_4with?p643b=band the regularlayout_2without it, on both Apache and Velocity, in any request order. - Split the traffic outside (campaign links, newsletter halves). The page cache does not keep an address whose query has a parameter outside
[HttpCacheSettings] QueryStringParameters, so the variant is rendered on every view.
With templates
- Two full view templates, chosen by
override.iniper node or remote ID, are the template way to the same.
Which to choose
One address with a Query parameter for a test; two pages with their own address (for example /offer-a and /offer-b) when both variants should come from the page cache.
Check
- Each variant address shows its own layout in a private window.
Related pages
- Which layout does a page get?
- Known editor behaviors
- Plan examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.