Overview
For most clients who have high volumes of live data and low volumes of test data, there is not enough test data to have a significant impact on program performance. However, it is possible to flag interactions with Extole as “test” events, which causes Extole to not summarize the data in your program summary analytics. Test events will still display in Event Live View of My Extole’s User Support center. These events are also processed for rewards, so you can check that events still arrive while you test your program and that people earn the rewards you expect. A test reward comes from your account’s Default Test Reward, as described in Rewards in the Test Container below. The test container changes how events are reported, not what they trigger. For events intest, Extole still sends emails and still dispatches webhooks, including webhooks on reward states, and it can still issue test rewards. Before you test a live program, check which emails, webhooks, and rewards the test events can reach, so that a test doesn’t email a real person or send test data to a partner’s system.
Using Test Containers
To route information to a “test” container, one of the following methods must be used. The dashboard offers the containersall, production, test, pending-review, and bot. An event routed to any other container name is stored, but it appears in none of the dashboard views, so a figure that looks too low is worth decomposing per container before you conclude that events were lost.
Put Testing Sites in a Test Container
When you set up a program domain, you are setting up a way to manage information about your website and program that is independent of any individual campaign you might be running. If you use a development or staging environment, you will want to ensure that Extole content can be served on the site but that events from the site will not be counted in your analytics. To flag a development or staging environment as a test site, navigate to the Tech Center in My Extole. If you are editing an existing program domain, click the edit icon next to it in the table. If you are creating a program domain for the first time, click the “+ New Domain” button. You will want to add in any sites that you would like to be identified as test sites in the “Test Sites to Enable Javascript” field. After you save your changes, any events occurring on those sites will not appear in your My Extole dashboard analytics.Visit a Specific URL
The simplest method is to visit the URL<your program domain>/api/v4/debug/mode/test at the start of every test sequence.
For example, let’s use the program domain https://refer.ricardosf.com/api/v4/debug/mode/test. Visiting this URL will set a cookie, and as long as your testing framework supports setting and then passing cookies, all subsequent requests will properly be classified as a test.
Use a Request Header in Your Browser
You can also opt to pass in a container name of “test” as part of the headers.Include a Test Container in the Parameters of Your API Call
When creating events through API calls (such as registrations or conversions), you will need to specify the container in the parameters of your API call to Extole. Follow the example below.Pass A Cookie
You can also choose to pass in a cookie with the following details:- Name: container
- Value: test
Pass A Query Parameter
You can pass in a query parameter of container=testInclude A Test Container in your Event Tags
For the register and conversion event tags, it’s possible to add the testing container flag directly into the tag.Marketing Tags Not SupportedYou cannot add the “container” data element into your marketing tags. The initial impression and advocate click will be tracked as test, but shares and friend clicks will go back to the production container.
Include A Test Container in Your Batch Files
When uploading batch event files, you can add a column with a header of “container” and value of “test”. Read more in our article about Uploading Batch Jobs.How Extole Picks an Event’s Container
Extole picks the container for each event from the request that carries that event. It uses the first of these that applies:- The request names a container, with the
containercookie, theX-Extole-Containerheader, or acontainerparameter. The event goes to that container. - The request’s origin is a site that the program lists as a test site. The event goes to
test. - Extole identifies the request as automated, for example a blocked user agent or a page-preview request. The event goes to
bot. - Otherwise, the event goes to
production.
test, include container in the event’s data, as in Include a Test Container in the Parameters of Your API Call above.
A Container Does Not Carry Over to Later Events
Extole does not look at a person’s earlier events or journeys when it picks a container. A person’s journeys, and the referrals between an advocate and a friend, are kept separately for each container. An event continues a journey or credits a referral only in its own container. So if a person qualifies through a test experience and then converts on your live site, the conversion arrives inproduction. It does not continue the person’s test journey, and Extole does not attribute it to that journey.
To test a whole journey, send every event in it to the same container. For example, set the container cookie at the start of the test, as described in Visit a Specific URL above.
Rewards in the Test Container
When an event in thetest container earns a reward, Extole issues it from your account’s Default Test Reward, not from the reward the campaign names. The same applies to rewards earned in a campaign preview.
So a test shows whether a person earns a reward. It does not show your real reward being delivered.
- The Default Test Reward: Extole creates one when it creates your account. As created, it is an account credit with a value of $0, it is fulfilled automatically, and it sends its reward email automatically. If your account has none, create a reward with that name to receive test rewards.
- How Extole finds it: by its name,
Default Test Reward, ignoring case. Only one reward in your account that is not archived can have that name. Whatever type and value you give it is what a test person receives. - When your account has none: a test event that earns a reward gets no reward. Extole sends your account a warning notification instead.
- In production: Extole does not issue the Default Test Reward to a person in the
productioncontainer. Before a campaign goes live, set each of its rewards to your live reward, as described in How to Push Your Test Campaign Live.
