Skip to content

A/B Testing

brekz-website serves as the variant B environment in the Brekz A/B test. Visitors assigned to variant B are redirected from www.* (brekz-prestashop) to www2.* (brekz-website) for eligible page types.

Full documentation

This page covers only the brekz-website side of the A/B test configuration. For the complete overview — including the cookie mechanism, architecture diagram, and brekz-prestashop configuration — see the feature documentation:

A/B Testing Feature Documentation


How brekz-website is involved

When a visitor with AB_templating=B clicks an eligible link in brekz-prestashop, their browser navigates to the www2.* subdomain. brekz-website handles that request and serves the new frontend experience.

brekz-website must be configured to:

  1. Accept and correctly handle requests on www2.* hostnames.
  2. Serve the relevant page types (Category page 2012 variant) that are in scope for the test.

Configuration

Environment variable

An .env variable enables brekz-website to serve the page types that are part of the A/B test.

# A/B Testing — Category page 2012 variant
ABTEST_CATEGORY2012_ENABLED=true
ABTEST_CATEGORY2012_HOSTNAME=www2.brekz.nl

See A/B Testing Configuration for the full details, including accepted values and the configuration checklist.