Aller au contenu

A/B Testing & Experiments

Test personalization against your original page, and personalization approaches against each other (Pro plan and above).

What is A/B Testing in GetIntent?

GetIntent has built-in A/B testing called Experiments, available on the Pro plan and above. An experiment can answer two questions:

  • Does personalization beat my original page? A holdout group keeps your page unchanged, and the dashboard shows the lift of everyone who got a personalized page.
  • Which personalization approach converts best? Variants give the AI different instructions, and each variant is compared with the control variant.

Testing against your original page

  • Every new experiment holds back 10% of its visitors on your original page by default. Choose 0% to 50% when you create the experiment, or change it while the experiment is a draft that has never run. 0% turns the holdout off.
  • Visitors in the holdout see your page exactly as you built it: the script does not rewrite anything and no AI personalization is used up for them.
  • Assignment is random but sticky. The script and the server-side API use the same assignment, based on a hash of the experiment and the visitor: a random ID the script keeps for the browser tab, or the visitorId you send to the API. The same tab, or the same visitorId, always lands in the same arm. Nothing is derived from the IP address or user agent, so a visitor who opens a new tab can be counted again as a new visitor. Server-side callers get stable assignment by sending a visitorId.
  • Search engine crawlers and other known bots do not enter experiments. They get the normal personalized page and are not counted in either arm.
  • Only visitors who match the experiment's UTM targeting and traffic percentage enter it. Outside a running experiment there is no holdout: every eligible visitor gets the personalized page.
  • Experiments created before the holdout existed keep running without one. To test them against the original page, create a new experiment.

Creating an Experiment

Requires the Pro plan or higher. Go to Dashboard > Experiments.

  1. Click "Create Experiment" and set a name and description
  2. Set the traffic percentage — what share of matching traffic enters the experiment
  3. Set the holdout on your original page (10% by default)
  4. Optionally add variants — each can have prompt modifiers that change how the AI personalizes:
    • "Emphasize urgency and limited-time offers"
    • "Focus on social proof and testimonials"
    • "Lead with pricing and value"
  5. Set variant weights (how the personalized visitors split between variants)
  6. Optionally target by UTM source, medium, or campaign
  7. Set the confidence level (default: 95%)
  8. Start the experiment. It needs two arms: the holdout and one variant, or two variants.

Experiment Arms

  • Original page (holdout): your page unchanged. It is the baseline for the lift of personalization. It is managed by the holdout setting and cannot be edited or deleted as a variant.
  • Control: personalized without extra instructions. It is the baseline the other variants are compared with. If you do not add variants, GetIntent creates the control for you.
  • Custom variants: each variant gets its own AI prompt modifiers.
  • You can have up to 20 variants per experiment.
  • Weights split the personalized visitors between variants (e.g., 50/25/25). The holdout share is taken first.

Conversions and goals

  • The script remembers the visitor's arm for the browser session, holdout included, so a later getintentTrackConversion() call is attributed to that arm.
  • A visitor counts once per arm for "All conversions", and once per goal: a conversion counts for a goal when its name matches the event name of an active custom-event goal, or when it carries the goal's goalId.
  • Click and page-view goals are tracked by the script automatically: it loads the active goals of the site, and sends a conversion when a visitor clicks a matching element or link, or opens a matching URL. Each goal counts once per visitor and is attributed to the visitor's arm, the holdout included. SeeConversion goals for the matching rules.
  • Server-side callers and the JavaScript SDK send conversions toPOST /api/v1/conversions with the same visitorId they used for/api/v1/personalize and thevariantId from its response.
  • Conversions only count while the experiment is running.

Statistical Significance

GetIntent uses a two-sided two-proportion z-test with a pooled standard error, on the share of visitors in each arm who converted at least once:

  • Lift = (personalized conversion rate − holdout conversion rate) / holdout conversion rate. It is shown for all conversions, for each conversion goal and, when there are several variants, for each variant.
  • The result is significant when the p-value is below 1 − the confidence level (p < 0.05 at the default 95%).
  • Results are flagged as underpowered while either side has fewer visitors than the experiment's minimum sample size (100 by default).
  • The z-test needs enough conversions as well: while either side would expect fewer than 5 conversions (or fewer than 5 visitors without one) at the combined conversion rate, the result says there are not enough conversions yet and is never marked significant.
  • Each goal is tested on its own. With many goals, one can look significant by chance, so decide on the primary goal before you start.
  • Variants are compared with the control variant with the same test.

Confidence intervals

  • Every lift is shown with a confidence interval at the experiment's confidence level (95% by default).
  • Relative lift: the Katz log interval for the ratio of the two conversion rates, minus 1. It needs at least one conversion on each side.
  • Absolute difference (personalized rate − holdout rate, in percentage points): the Newcombe hybrid score interval, built from a Wilson score interval per arm. The dashboard shows it while the holdout has no conversions yet; the API always returns both as relativeLift and difference.
  • The significance verdict comes from the z-test above. Near the threshold the interval and the verdict can disagree slightly, because they are different methods.

Experiment Lifecycle

  1. Draft — Created but not running. Edit variants and the holdout freely.
  2. Running — Visitors are assigned to arms and conversions count. Variants and the holdout cannot be changed.
  3. Paused — No new visitors enter. Every visitor, including the holdout, gets the normal personalized page without experiment instructions, and conversions are not counted. Resume any time: visitors keep the arm they had.
  4. Completed — Results are final. Visitors get the normal personalized page.

Auto-Optimization

Auto-optimization is an optional setting you can enable on any experiment.

  • When enabled, GetIntent checks the experiment as data comes in. Once every personalized variant has reached the minimum number of conversions (100 by default) and a variant beats the control significantly, that variant is marked as the winner and the experiment is completed.
  • It needs at least two personalized variants. The holdout is never a winner candidate.
  • On its own it does not shift traffic: until a winner is found, traffic splits by the holdout and the weights. To shift traffic as results come in, turn on automatic traffic allocation.

Automatic Traffic Allocation

An opt-in mode, set per experiment while it is a draft ("Shift traffic to the best variant automatically", or allocationMode: "bandit" in the API). It is a multi-armed bandit using Thompson sampling.

  • The holdout is never touched. Whether a visitor lands in the holdout is decided first, by the same hash as in a normal experiment, and the holdout share stays fixed. The bandit only chooses between personalized variants.
  • Learning phase: until every personalized variant has the experiment's minimum sample size of visitors (100 by default), new visitors follow your weights exactly as in a normal experiment.
  • After that, each new visitor gets the variant that wins one draw from each variant's Beta(1 + converters, 1 + visitors − converters) distribution, so a variant receives traffic in proportion to the chance that it converts best. 10% of new visitors still follow your weights, so no variant stops learning.
  • Only new visitors are affected: a visitor keeps the variant they were assigned. The dashboard shows the current phase and each variant's share of new personalized visitors; the API returns it as allocation.
  • The comparison with your original page stays a randomized test. Comparisons between variants are less precise when allocation changes over time, especially if conversion rates drift, so use the holdout lift as the main result and keep the bandit for experiments where earning conversions during the test matters more than a precise ranking.

UTM Targeting

  • Target experiments to specific traffic sources.
  • Example: Only run this experiment for Google Ads traffic (utm_source=google).
  • Useful for testing different personalization strategies per channel.

Viewing Results

Expand an experiment in the dashboard to see:

  • Personalized vs. your original page: conversion rates, lift, p-value and verdict, for all conversions and per goal
  • Per arm: visitors (impressions), conversions and conversion rate
  • Per variant: improvement vs. the control and statistical significance
  • Confidence intervals for the lift
  • For automatic traffic allocation: the phase and each variant's current share

The same numbers are returned by the experiments API in the holdout field.

CSV export

Once an experiment has started, "Export CSV" downloads its daily results, or call GET /api/experiments/{id}/export with a secret key that has the experiments:export scope. Only members of the organization that owns the site, or its secret keys, can export.

  • One row per UTC day, per arm and variant, and per goal ("All conversions" plus each goal).
  • Columns: date, experiment_id, arm, variant_id, variant_name, goal_id, goal_name, new_visitors, converters, cumulative_visitors, cumulative_converters, cumulative_conversion_rate and a Wilson confidence interval for the cumulative rate (cumulative_rate_ci_lower, cumulative_rate_ci_upper).
  • Visitors are counted on the day they entered the experiment and converters on the day of their first conversion. The file contains no visitor-level data.

Tips

  • Let experiments run until statistical significance is reached — don't call winners early.
  • Test one variable at a time for the clearest results.
  • Start with high-traffic pages for faster results.
  • Use prompt modifiers to test different messaging angles, not just different words.