Audiences from earlier tests
Choose who takes part based on which version they saw in an earlier test and whether they completed a goal.
If you set up tests in the admin, you can choose people based on a version they saw in an earlier test and whether they completed a goal there. Developer setup is below.
- To test a follow-up message with people who saw Version A and gave, select Version A and the gift goal, choose Completed it, and select Only these people.
- To test a sign-up prompt with everyone except people who already signed up in an earlier test, select all its versions, choose the sign-up goal and Completed it, and select Everyone except these people.
Choose an audience
- In Who takes part (optional), select Add people from an earlier test.
- Under Test, use Search earlier tests to choose the test you want.
- Under Round, leave Latest round selected or pick a specific round. If you use Latest round, the choice is fixed to the latest round when you start.
- Under Versions, select one or more versions people must have seen. Seeing any selected version qualifies.
- Under Outcome, leave Any outcome selected to use the versions alone. To filter by a goal, select the goal and choose Completed it or Didn't complete it.
- Under Include or exclude, choose Only these people or Everyone except these people.
The size line says “About 1,200 people” or “Leaves out about 1,200 people,” using the latest results run for the selected round. Before a size is available, the line says “Size shows after the first results run.” Only people who can read results see the counts.
How membership works
- People qualify based on what they actually saw. Being selected for a version without seeing it does not qualify them.
- Didn't complete it is available at least 24 hours after the earlier round ends, when the time to complete a counted goal has closed.
- If the earlier test is still running, the audience can grow with each hourly results run. You’ll see a line such as “This group grows while Spring sign-up runs.”
- Tests cannot depend on each other in a loop, including through another test.
- Signed-in people can match the audience across devices through their linked account.
- Someone who leaves the audience after seeing the new test stays in its results and sees the Original afterward. Data quality says “1 person left this audience after they first saw the test. They stay in the results, and saw the Original afterwards.”
Readiness messages
| Message | What to do |
|---|---|
| Check the earlier test, round, versions and goal for this audience. | Choose an earlier round with views that are still available, then check that the selected versions and goal belong to it. |
| An earlier test in this audience also depends on this test. | Choose a different earlier test or remove the rule that creates the loop. |
| To use people who didn't complete a goal, wait until 24 hours after the earlier round ends. | Wait until that time has passed, or choose a different outcome or round. |
| Ask your developer to enable audiences from earlier tests. | Ask them to complete the setup below. |
| This audience needs more time. Build the audience, then start the test. | Choose Build the audience and wait for “Building the audience… this can take up to a minute” to clear. Then start the test. |
| Choose an earlier test. | Select a test under Test. |
| Choose a different test. | Choose an earlier test other than the one you are editing. |
| Enter a positive whole round number. | Choose Latest round or a numbered round from the list. |
| Choose at least one version. | Select one or more choices under Versions. |
| Choose whether people completed the goal. | Choose Completed it or Didn't complete it, or choose Any outcome to skip the goal. |
| This audience may be too small to reach a reliable answer. | Review the reach estimate. If you need more people, check whether another version or outcome meets your needs. |
Privacy
The plugin uses the signed first-party visitor cookie and signed-in user links to match people. It does not use fingerprinting. See Signed-in users.
Developer setup
Set cohorts: { proxyLookup: true } in createExperimentsPlugin and set lookupCohorts: createPostgresCohortLookup({ pool }) in defineExperimentsProxyRuntime. Import createPostgresCohortLookup from @delmaredigital/payload-experiments/runtime/proxy. Pass the pg pool for your Payload Postgres database and schemaName if you use a custom schema. See Runtimes.
The proxy batches membership checks into one indexed query and one database round trip for requests evaluating tests that use audiences. A brand-new browser without a signed-in user skips the query. Postgres has a 150 ms statement timeout, and the lookup has a 200 ms overall deadline. A missing lookup, timeout, error, or malformed lookup input leaves membership unknown. The affected tests fail closed, serving the Original without recording an exposure, including for exclusion rules.
The signed xp_c cookie caches membership only for audiences from ended rounds whose attribution windows have closed. The cookie is tied to the visitor ID and user ID and expires within 24 hours without extending its lifetime.
Without the plugin option, Start refuses audience rules and the admin says “Ask your developer to enable audiences from earlier tests.” If a running test using an audience records zero exposures in its first active hour, Data quality shows “No one has seen this test in its first hour.” Check that the proxy actually has lookupCohorts set. The option declares the wiring and the health item can help you spot a missing adapter.
The existing results cron refreshes membership. eraseUser removes membership rows for the user and their linked visitor IDs. See Results runner and Server helpers.

