On this page: Learn how to pass Activity QA parameters in a server-side Adobe Target call, so that you can test activities when pageUrl is not available.
The standard implementation of Activity QA supports passing qa_mode parameters via pageUrl parameters. This approach is convenient for standard/ajax Target calls. However, it is not suitable for server-to-server calls, such as a Mobile SDK implementation, where pageUrl is not available. In these cases, pass the QA parameters in the request itself, which keeps the same preview links, optional audience targeting, and QA reporting that is segmented from live activity data.
The following code sample shows Activity QA in a server-side call:
{
"mbox" : "orderConfirmPage",
"clientSideAnalyticsLogging": true,
"clicked" : true,
"tntId" : "12121212.17_01",
"order" : {
...
},
"profileParameters" : {
...
},
"mboxParameters" : {
...
},
"requestLocation" : {
...
},
"qaMode" : {
"token" : "<encrypted token string>",
"bypassEntryAudience" : true,
"listedActivitiesOnly" : true,
"evaluateAsTrueAudienceIds" : [audienceId1, audienceId2...],
"evaluateAsFalseAudienceIds" : [audienceId3, audienceId4...],
"previewIndexes" : [
{
"activityIndex" : 1,
"experienceIndex" : 1
}
],
},
"mboxTrace" : true
}
The following table describes the parameters of a server-side request:
Validation rules: The token must be an encrypted token belonging to the client specified in the Target request. All activities specified in the token must belong to the client.
activityIndex is null or out of the boundaries of the activities in the token, it is ignored. The index starts with 1.Validation rules: At least one activity index is required, and it must reference an activity specified in the token.
Validation rules: The value can be null, or it must reference an experience in the activity.
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: Activity QA parameters can be passed in the request itself of a server-side Adobe Target call, so that activities can be tested when
pageUrlis not available.
Intents:
- Pass Activity QA parameters in a server-side Adobe Target call.
- Test activities in server-to-server calls, such as a Mobile SDK implementation, where
pageUrlis not available. - Keep the same preview links, optional audience targeting, and QA reporting that is segmented from live activity data.
- Select the activity and the experience to preview with
activityIndexandexperienceIndex. - Force audiences to be evaluated as true or as false with
evaluateAsTrueAudienceIdsandevaluateAsFalseAudienceIds.
Glossary:
- qaMode (product-specific): the object of a server-side request that contains the Activity QA parameters.
- token (product-specific): an encrypted entity (type: Encrypted token) that contains the list of activity IDs that are allowed to be executed in Activity QA.
- bypassEntryAudience (product-specific): a Boolean (default: False) that specifies whether entry step targets for QA activities are evaluated or are considered as matching.
- listedActivitiesOnly (product-specific): a Boolean (default: False) that specifies whether QA activities are executed in isolation or are evaluated as active activities for the current environment.
- evaluateAsTrueAudienceIds (product-specific): a list of IDs (default: empty list) of audiences that are always evaluated as true in the scope of the Adobe Target request.
- evaluateAsFalseAudienceIds (product-specific): a list of IDs (default: empty list) of audiences that are always evaluated as false in the scope of the Adobe Target request.
- activityIndex (product-specific): an integer (default: Null) that is the activity index in the encrypted token.
- experienceIndex (product-specific): an integer (default: Null) that, when specified, selects an experience by index in the activity definition. If not specified or out of boundaries, it falls back to the experience selector strategy of the activity.
Guardrails:
tokencannot be empty. It must be an encrypted token belonging to the client specified in the Adobe Target request, and all activities specified in the token must belong to the client.activityIndex: at least one activity index is required, and it must reference an activity specified in the token. The index starts with 1.experienceIndex: the value can be null, or it must reference an experience in the activity. The index starts with 1.
Terminology:
- Canonical name: Activity QA with server-side delivery
- Do not confuse: “qa_mode parameters passed via
pageUrlparameters” (standard implementation of Activity QA, convenient for standard/ajax Adobe Target calls) ≠ “QA parameters passed in the request itself” (server-side calls, not suitable for thepageUrlapproach becausepageUrlis not available)
FAQ:
- When do I pass the Activity QA parameters in the request itself? Pass them in server-to-server calls, such as a Mobile SDK implementation, where
pageUrlis not available. - What does the standard implementation of Activity QA support? It supports passing
qa_modeparameters viapageUrlparameters, which is convenient for standard/ajax Adobe Target calls. - What is kept when the QA parameters are passed in the request itself? The same preview links, optional audience targeting, and QA reporting that is segmented from live activity data are kept.
- What does the token contain? The token is an encrypted entity that contains the list of activity IDs that are allowed to be executed in Activity QA.
- What happens when experienceIndex is not specified or is out of boundaries? It falls back to the experience selector strategy of the activity.
Examples:
- A server-side request for the
orderConfirmPagembox that includes aqaModeobject withtoken,bypassEntryAudience,listedActivitiesOnly,evaluateAsTrueAudienceIds,evaluateAsFalseAudienceIdsandpreviewIndexes(each entry with anactivityIndexand anexperienceIndex), and"mboxTrace" : true. The page presents it as the code sample that shows Activity QA in a server-side call.
Personas:
- developer: Can pass Activity QA parameters in the
qaModeobject of a server-side Adobe Target call. Can settoken,bypassEntryAudienceandlistedActivitiesOnly. Can list audience IDs inevaluateAsTrueAudienceIdsandevaluateAsFalseAudienceIds. Can select the activity and the experience to preview withactivityIndexandexperienceIndex. WhenexperienceIndexis not specified or is out of boundaries, it falls back to the experience selector strategy of the activity. Where: “Glossary”.
Onboarding:
- Level: Experienced
- First minimal step: When pageUrl is not available, pass the Activity QA parameters in the qaMode object of the server-side Adobe Target request.