Test product experiences with recorded conversions

Create a fixed experiment, apply stable variants on your site, confirm exposure and compare mature conversion outcomes.

Last updated November 29, 2026

What this tests

Product experiments compare two through four experiences on a tracked website. The first variant is the control. Assignment is random according to the declared weights and remains stable for the same experiment and browser visitor ID. Your website applies the experience; AEO Goal records whether the browser was actually exposed and whether its recorded goal happened afterward.

This is separate from SEO change experiments. It is not a visual website editor, a remote configuration platform or an automatic deployment of a winning variant. A developer must connect your site’s rendering code. Experiments use browser visitor IDs; linked person/account report settings do not change randomization.

Define the design before starting

Open Attribution → Experiments → Create an experiment.

  1. Give it a clear name and a unique lowercase Experiment key.
  2. Choose a recorded Goal event, such as purchase, lead or a successful custom action like trial_started. Each eligible browser can convert once. Use the conversion integration for sales and aeo('event', ...) for actions.
  3. Set Enrollment days from 7 to 90. Enrollment starts when you confirm Start enrollment and ends at the fixed deadline.
  4. Set Outcome window (days) from 1 to 30. The window starts at each browser’s first confirmed exposure. Results exclude browsers until their complete observation window finishes.
  5. Set Minimum mature browsers per variant. The default is 1,000; the allowed floor is 100. This is a reporting safeguard, not a statistical power calculation. Choose an appropriate sample and duration before starting.
  6. Enter the variant keys and allocation percentages. Weights must total 100%. A design cannot require more than the 20,000-assignment allowance at its smallest allocation. Avoid running competing experiments on the same change.
  7. Choose Save experiment design.

Design, allocation, goal and windows are immutable after creation. Delete an unused draft and create it again if you need to change it. Started designs and results cannot be deleted through the draft control. Verify your implementation before selecting Start enrollment. Requests for a draft return unavailable; keep the site’s ordinary experience in that case.

Connect your site

Install the Site Tracking tag, then load this optional script on pages that participate:

<script defer src="https://app.aeogoal.com/t/experiments.js"></script>

This additional bundle is not downloaded by the ordinary tracking tag. Wait until both scripts are loaded and analytics consent is granted. When aeo('visitorId') returns a non-null value, call aeoExperiment from your site’s rendering integration. This example switches existing variant sections:

const result = await window.aeoExperiment({
  key: 'checkout_layout',
  apply: async (variant) => {
    const panels = [...document.querySelectorAll('[data-checkout-variant]')];
    const selected = panels.find(panel => panel.dataset.checkoutVariant === variant);
    if (!selected) throw new Error('Configured experiment variant is unavailable');
    panels.forEach(panel => { panel.hidden = panel !== selected; });
    await new Promise(resolve => requestAnimationFrame(resolve));
  }
});

Use your own rendering lifecycle instead of these selectors for React or another application framework. The apply callback must resolve only after the assigned experience is visible. Keep the normal control experience available while assignment is unavailable. Do not put private credentials in this integration.

The client validates the assignment and confirms the same consenting visitor before applying it and again before recording exposure. A successful callback triggers a separate exposure acknowledgment. Assignment alone is not exposure.

Client status Meaning
recorded A valid variant was applied and the server confirmed exposure.
not_ready No consenting visitor exists, or consent/identity changed during the request.
unavailable Assignment failed, the experiment is not enrolling, or the response is invalid. Keep the ordinary experience.
not_applied Your rendering callback failed. No exposure is claimed.
exposure_unconfirmed A variant was shown but delivery could not be confirmed. Investigate delivery and compare Assigned versus Shown before interpreting results.

Network calls have five-second timeouts. The client does not retain an exposure queue after consent withdrawal, logout or navigation. If a still-consenting browser is still showing the treatment, your integration can call the helper again with the same key and an idempotent apply callback: assignment stays stable and exposure is deduplicated. Do not record an exposure after the treatment is no longer visible. The result is best-effort browser instrumentation, not guaranteed durable delivery from a browser that has closed.

For a direct implementation, the public APIs are POST /api/collect/experiments/assign with {k, vid, key, consent: true} and POST /api/collect/experiments/expose with {k, vid, assignment_id, consent: true}. Use text/plain JSON, CORS mode and omit credentials. The site key and the site’s allowed origin are required. Requests share Site Tracking’s rate limit and daily site quota. Bot assignment is rejected. The read API is authenticated and brand scoped.

Interpret results

Select an experiment in Attribution → Experiments.

  • Assigned counts stable assignments, including experiences that were never shown. Shown requires the explicit acknowledgment.
  • Mature counts exposed browsers whose full outcome window finished. Waiting shows exposures still under observation.
  • Converted counts a goal at or after first exposure and within that browser’s outcome window. Repeated goal events do not add conversions. Earlier goals and goals on browsers with no confirmed exposure are excluded.
  • Rates have 95% Wilson intervals. Comparisons use two-sided Fisher exact tests, with Bonferroni adjustment across treatment-versus-control comparisons.
  • Assignment balance uses the declared allocation. A sample-ratio warning needs investigation; it does not declare a result. Exposure delivery can also be unequal, so investigate the Assigned/Shown difference before acting.

Results remain exploratory until enrollment and every possible outcome window have ended and every arm reaches its declared minimum. A minimum sample does not guarantee sufficient power. Stop enrollment early preserves history and makes final decisions exploratory. Do not repeatedly inspect p-values and stop when one becomes favorable. A statistically inconclusive test does not establish that experiences are equivalent. The app does not automatically publish a treatment.

See NIST’s proportion interval guidance and the Fisher exact reference for the statistical methods.

Inspect recordings and data quality

Inspect converted browsers in replay links up to 25 browser IDs per variant. A recording can be absent because of sampling, consent or retention; the link does not prove that a particular recording contains the treatment or sale. Use the delivery counts, conversion integration and your site rendering logs to validate the complete workflow before drawing conclusions.

A brand can hold up to 100 experiment designs and an experiment up to 20,000 assignments. Assignment/event data follows the attribution retention window, 400 days by default. Results older than that return an expired-data error instead of a misleading zero. Erasing a visitor also removes their assignments; results recompute from the remaining retained data. Use logout reset on shared devices.

Verify before a client rollout

  1. Start a controlled experiment on the AEO Goal sandbox brand.
  2. Confirm one consenting browser receives the same variant on repeat requests.
  3. Confirm Assigned increases before exposure while Shown remains zero.
  4. Apply the variant and confirm Shown increases once, including on a retry.
  5. Record the goal through your real conversion/action integration.
  6. Wait for the full outcome window; verify the mature denominator and goal order.
  7. Check origin rejection, consent withdrawal, logout reset and visitor erasure.

Automated tests exercise these contracts locally. Production proof additionally requires the deployed migration, optional bundle and actual site integration.