Adobe Target event reference
data-variant=warning
data-slots=text
Events handled
The following events are handled by the Target extension:
Target content request
This event is created when an API is called to send a Target request or Target prefetch request for the associated mbox location.
The event is generated by the API in the following situations:
- When a new Target request needs to be sent (
loadRequestsorretrieveLocationContent) - When a Target prefetch is initiated (
prefetchContent) - When the Target preview restart deeplink is set (
setPreviewRestartDeepLink) - When a click notification needs to be sent to Target (
locationClicked) - When a display notification needs to be sent to Target (
locationsDisplayed)
Data payload definition
Here are the key-value pairs in this event:
restartdeeplinksetPreviewRestartDeepLink API is called.profileparamsprefetchContent/ loadRequests API is called.islocationclickedlocationClicked API is invoked.islocationdisplayedlocationsDisplayed API is invoked.The locationClicked API parameters are also sent in the event, as described below:
{
"islocationclicked": <Boolean>,
"mboxname": <String>,
"mboxparameters": <StringMap>,
"productparameters": <StringMap>,
"orderparameters": <VariantMap>,
"profileparams": <StringMap>
}
prefetchContent API is called.The prefetch key contains a list of objects, each with the following content:
{
"mboxname": <String>,
"mboxparameters": <VariantMap>,
"profileparams": <VariantMap>,
"productparameters": <VariantMap>,
"orderparameters": <VariantMap>
}
requestVariantVectorloadRequests is called.The request key contains a list of Target requests, each with the following content:
{
{
"mboxname": <String>,
"mboxparameters": <VariantMap>,
"profileparams": <VariantMap>,
"productparameters": <VariantMap>,
"orderparameters": <VariantMap>
}
"defaultcontent": <String>,
"responsepairid": <String>
}
Target identity request
This event is a request to retrieve Target identities, such as third-party IDs and TNT IDs, or to set the third-party ID.
This event will be generated by the API that is:
- Requesting a Target Identity (
getThirdPartyId,getTntId). - Setting the third-party ID (
setThirdPartyId).
Data payload definition
Here are the key-value pairs in this event:
thirdpartyidsetThirdPartyId API is called.Target reset request
This event is created by customers who use the API to reset the Target parameters.
This event is generated by the API in the following scenarios:
- From the customers to clear Target parameters (
resetExperience). - To clear the prefetch cache (
clearPrefetchCache).
Data payload definition
Here are key-value pairs in this event:
resetexperienceresetExperience API.clearcacheclearPrefetchCache API.Configuration response content
The data property in the Configuration response content event is used by each extension to modify its current settings. Each extension is responsible to read out the part of the data property for which it is concerned.
The Target extension will read the following keys from the configuration event:
target.clientCodetarget.environmentIdtarget.timeoutglobal.privacytarget.previewEnabledEvents dispatched
The following events are dispatched by the Target extension:
Target Content response
This event is created when the Target server response is received, and the prefetch or load request operation is completed. Network responses are generated from the Target server for prefetch or load request calls.
This event is dispatched in the following scenarios:
-
In response to an API prefetch content request. This event contains a
prefetchresultkey of type boolean, which signals the success or failure of the prefetch request. -
In response to an API batch load requests, where one event is dispatched per request.
This event contains a
contentkey of type string that contains mbox content.
Data payload definition
Here are the key-value pairs in this event:
contentprefetchresultprefetcherrorTarget Identity response
This event delivers the Target identities to the following:
- The original requester.
- To any extension that might be listening for updates.
This event is generated by the Target extension as a response to the Target Identity Request event.
Data payload definition
Here are the key-value pairs in this event:
tntidthirdpartyidTarget preview response
This event is generated when the marketer enters or exits Target preview mode. It can be used to trigger any custom workflows or API calls based on the preview flag by the following:
- The original requester.
- To any extension that might be listening for updates.
Data payload definition
Here are the key-value pairs in this event:
ispreviewinitiatedShared states
MODULE_NAME: com.adobe.module.target
Shared state for this module is updated when the IDs are set or reset from public or Target servers.
tntidtntId is not returned in the Target API response when a thirdPartyId or experienceCloudVisitorId is provided in the request.thirdpartyid