Skip to main content

Splits and A/B

A single domain can drive traffic to several different PWAs — for example, to compare two cards against each other (an A/B test) or to spread the load. The app itself in the Editor knows nothing about such distribution: which PWA to show and to whom is decided by the campaign rules on the domain.

Where this is configured

Distribution and cloaking are set in the campaign flow rules — the Campaigns → Flows section. There, for each domain, you describe a list of rules that are checked top to bottom: the first matching one wins.

Each rule consists of three parts:

  • Conditions — who the rule is addressed to: language, geo, operating system, device, User-Agent, GET parameters, referer.
  • Targets and weights — where to direct the matching traffic. You can specify several targets (different PWAs, a redirect, a whitepage) and distribute the traffic between them by percentages (weights). This is exactly the split / A/B.
  • Cloak filters — filtering out unwanted traffic: blocking bot IP networks, datacenters and VPN/proxies, restricting by country and User-Agent.

A/B between two PWAs

To compare two cards: create both apps, then in the campaign rule add both as targets and set the weights (for example, 50% and 50%). The Balance weights button distributes the percentages evenly. View the statistics for each app on the Overview tab of its card.

Tip

The sum of the weights in a rule must total 100%. If a rule has no conditions, it matches all traffic — keep such a rule last in the list, otherwise the rules below it will never fire.

What's next