Test a Campaign with the Test Cohort
Test a Digia-decided campaign for real, with its trigger, conditions and frequency, by showing it only to test profiles.
Test on device checks how a campaign looks. It does not run the trigger, the conditions or the frequency cap. See Live Testing.
To check that a campaign appears at the right moment, for the right user, show it for real, but only to people you choose. These people are test profiles, and together they form the Test Cohort.
By the end, you should have:
- one or more app users marked as test profiles,
- an active campaign that only they can see,
- a way to switch the campaign to your real audience when you're done.
The Test Cohort is part of Audiences, which is in early access; ask Digia to enable it for your project. It works for projects where Digia decides the campaigns. It isn't available for campaigns that CleverTap, MoEngage or WebEngage decide.
Before You Start
Ask your developers to confirm that the app calls setUserId with the user's ID when someone logs
in. This is what links the person holding the phone to the profile you mark. An anonymous user, one
who isn't logged in, can't be a test profile and never sees a Test Cohort campaign. See
Identify users.
You don't need user verification for the Test Cohort.
1. Find the User
Open Data → Users. Type the person's app user ID, exactly as the app sends it to setUserId, and
click Open profile.

The search is exact. Asha_123 doesn't find asha_123. If no user matches, you'll see No user
"…" with the hint to open the app once, logged in as that user. The user has to have reached Digia
at least once before you can mark them.

2. Mark Them as a Test Profile
On the user's profile, click Mark as test profile. Digia confirms with a message such as
"asha_123" marked as a test profile.
To undo it, open the profile, click Test profile, then Remove test profile.
A project can have up to 100 test profiles. You need permission to edit campaigns to mark or remove them.
3. See Your Test Profiles
Open Data → Audiences. The Test Cohort row is always at the top and marked Built in. Expand it to see each test profile's User ID, Platforms, Last seen and Marked by.

4. Aim the Campaign at the Test Cohort
In the campaign editor, go to Targeting. Under Imported audiences, click Add an audience and choose Test Cohort.
The Test Cohort reaches test profiles and nobody else, so Digia asks for it to be the only audience on the campaign. Choosing it removes any other audience, and it can't be used in Skip.
5. Activate and Test
Activate the campaign. Real users can't see it, because they aren't in the Test Cohort.
On a phone, log in as the test user and do what triggers the campaign: open the app, visit a screen, or perform the event. Digia then checks everything for real: the trigger, Show on, conditions, frequency and priority.
Frequency limits are counted on the phone, not per person. If you test a Once ever campaign and want to see it again, clear the app's data on that phone.
If it doesn't show straight away
Digia fetches a user's campaign list when they log in, when the app starts and when it returns to the foreground. Test profiles are fetched fresh each time. But if the phone checked just before you marked the profile, it can keep its earlier answer for up to 15 minutes. To get the new answer immediately, log out and log back in as that user.
6. Go Live
When the campaign behaves as expected, edit it. In Targeting, remove the Test Cohort and choose the audience you want, or no audience for everyone, then save and activate it again. Your test profiles stay in the Test Cohort for the next campaign.
Quick Reference
| Question | Answer |
|---|---|
| Who sees a Test Cohort campaign? | Test profiles only, logged in with setUserId. |
| Can an anonymous user be a test profile? | No. |
| How many test profiles? | Up to 100 per project. |
| Is the user search case-sensitive? | Yes, and exact. |
| Does it need user verification? | No. |
| Does it work with CleverTap, MoEngage or WebEngage deciding? | No. |
| Is it the same as Test on device? | No. Test on device checks the design only. |