Overview
A campaign sandbox runs a campaign’s latest version, including changes you have not published yet. Live traffic keeps the published version. To test a draft before you publish it, send the events of a test journey, such as a share, a share click, a signup, and a conversion, to a campaign sandbox. To see what the published version does with the same events, send them to a production sandbox.Choose a Sandbox
The campaign id is in the campaign’s address in My Extole, after
/campaigns/.
If a request sends no sandbox, Extole uses a production sandbox: production-production, or
production-<container> when the request names a container. Such a request runs the published
version, not your draft.
The two campaign sandboxes differ in who can enter a journey and which rules run:
- Campaign preview: a person can enter a journey without a referral, so you can test a friend
journey without an advocate. A journey name in the value, such as
FRIEND, gives that journey the highest priority. The campaign’s quality rules do not run. - Campaign: journey entry follows the campaign’s own rules. A friend enters the friend journey only through a referral, as on your live site. The campaign’s quality rules run.
Send an Event to a Sandbox
Consumer Events
On the consumer API, pass the sandbox in theX-Extole-Sandbox header. Send every request of one
test journey with the same header.
Server Events
For an event your server sends tohttps://api.extole.io/v6/events, put the sandbox in the
event’s data as sandbox. The X-Extole-Sandbox header applies only to the consumer API. Use a
server-side access token, as in Send Events from the Partner Platform.
sandbox in its data too. Extole ignores a value that does not match a
sandbox format above and processes the event as if it named no sandbox.
See How Extole Processed an Event
To see each decision Extole made for a test event, such as which sandbox and campaign it used and which rules passed, ask for the processing log:- On the consumer API, add the
X-Extole-Debugheader or thedebugquery parameter with any value other thanfalseor0. The response returns the log inX-Extole-Logheaders. The valuetraceadds timing and trace detail. - On a server call, add the
X-Extole-Debugheader with a level from1to3, as Common Errors describes.
What a Test Event Does
A sandbox changes which campaign version handles the event and which container records it. The event is processed in full:- In the
testcontainer and in the campaign preview sandbox, a reward comes from your account’s test reward supplier, whatever supplier the campaign’s reward names. If your account has no test reward supplier, the reward is not issued. A rule that counts a person’s earlier rewards counts only rewards in the same container. - Emails and webhooks run as they do for a live event. Use test email addresses that you control. See Exclude Test Data from Analytics for how test containers are reported.
- An event can start schedules, such as a reward’s pending period or a reminder email, which run later. After a test, cancel the schedules it started and check that each test person has no reward.
- Your account’s prehandlers still apply, so a prehandler can record an event in another container than the one the sandbox names.
