Skip to content

Commit

Permalink
docs: SSR A/B test (#3339)
Browse files Browse the repository at this point in the history
## Description
  • Loading branch information
samijaber authored Jun 18, 2024
1 parent c6f4547 commit 536c45a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/sdks/docs/SSR_AB_TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ Here is a brief overview of how our SSR'd A/B testing works.

## How it works

At a high level, the way our SSR A/B testing works is the following:

Server Side Render:

- render every single variant
- show only the default variant, and hide all other variants using CSS and `hidden` + `aria-hidden` HTML attributes

Client Side Render:

- read/set a cookie to determine the winning variant
- hide or delete all losing variants (depending on the framework), and show the winning variant.

### SSR

let's assume a content with 3 variants: `default`, `variant-1`, `variant-2`.
Expand Down

0 comments on commit 536c45a

Please sign in to comment.