Debug Target with the Platform Web SDK
Verifying Target activities and debugging Web SDK to troubleshoot implementation, content delivery, or audience qualification issues. This page of the migration guide explains the differences between debugging with at.js and Platform Web SDK.
The table below summarizes features and support for testing and debugging approaches.
mboxDebug
URL parameteralloy_debug
parameter for similar debug informationmboxTrace
URL parameteralloy_debug
URL parameterAdobe Experience Platform Debugger browser extension
The Adobe Experience Platform Debugger extension for Chrome and Firefox examines your web pages and helps you validate your Adobe Experience Cloud implementations.
You can run Platform Debugger on any web page and the extension has access to public data. To access non-public data using the extension, such as Target trace information, you must authenticate to Experience Cloud via the Sign in link.
Obtain and install the Adobe Experience Platform Debugger
The Adobe Experience Platform Debugger can be installed in Google Chrome or Mozilla Firefox browsers. Follow the appropriate link below to install the extension on your preferred browser:
After you install the Chrome extension or Firefox add-on, an icon ( ) is added to the extension bar. Select this icon to open the extension.
Refer to the dedicated guide for more information about the Adobe Experience Platform Debugger extension and how to debug all Adobe web applications.
Preview Target activities with QA URLs
Both at.js and Platform Web SDK allow you to preview Target activities using Target QA URLs, and both implementation methods support the same QA features.
Target QA URLs working by instructing at.js or Platform Web SDK to write a specific cookie to your browser named at_qa_mode
. This cookie is used to force qualification for a particular activity and experience.
xdm.web.webPageDetails.URL
value passed in the sendEvent
call. Any modifications to this value such as lowercasing all characters may prevent Target QA mode from working properly.Refer to the dedicated guide for more information about Target activity QA.
Debug Target implementation
The table below outlines the differences between at.js and Platform Web SDK debugging tactics:
Load page with URL parameter:
mboxDisable=true
Load page with URL parameter:
mboxDebug=true
Load page with URL parameter:
alloy_debug=true
Or execute
alloy("setDebug", { "enabled": true });
in your developer consolewindow.___target_trace
object.Load page with URL parameter:
mboxTrace=window&authorization={TOKEN}
Disable Target functionality
The Platform Web SDK does not currently have a feature to selectively suppress Target responses. However, it is possible to suppress the Platform Web SDK requests with your browser’s developer tools, various browser extensions, or third-party applications. For example, to block the Platform Web SDK with Google Chrome:
- Right click anywhere on the page and select Inspect
- Select the Network tab
- Filter by the string
//ee//
to view only Platform Web SDK calls - Reload the page
- Right click one of the filtered network requests and select Block request domain
- Reload the page and notice that the network request is blocked
- When you are finished debugging, right click the blocked network request and select Unblock, or close the Developer Tools panel
View debug logging
Debug logging for at.js using the mboxDebug=true
URL parameter shows detailed information about each Target request, response, and attempt to render the content to the page. Platform Web SDK has similar debug logging using the alloy_debug=true
URL parameter.
mboxDebug=true
)alloy_debug=true
)AT:
[alloy]
View Target traces
Target traces provide detailed information about activity qualifications and the visitor’s Target profile. Since Target traces contain information that is not publicly available, viewing them requires an authorization token or authenticating within the Adobe Experience Platform Debugger browser extension window.
mboxTrace
URL parameterTo view Platform Web SDK Target traces with the Adobe Experience Platform Debugger, do the following:
- Navigate to a page on your site that has Target implemented with Platform Web SDK
- Open the Adobe Experience Platform Debugger extension by selecting the icon ( ) in your browser navigation bar
- Select the Sign In link
- Authenticate using your Adobe Experience Cloud login
- Select the Logs tab on the left
- Select the Edge tab on the top
- Optionally give your debugging session a name and click the Connect button
- Reload the page and the log should populate with detailed information about the edge network interactions
- Focus on the log entries that start with “Target Traces” in the description and select View to see Target trace details
{modal="regular"}
After selecting View, an overlay will appear allowing you to see the following information related to the request:
- Matched activities
- Unmatched activities
- Request details
- Profile snapshot
Refer to the dedicated guide about debugging Target content delivery for more information about Target traces.
Troubleshoot with Assurance
Target trace information is viewable in both the Adobe Experience Platform Debugger browser extension and within the Assurance application (formerly known as Project Griffon). To view Target traces within Assurance, do the following:
- Open the Adobe Experience Platform Debugger browser extension and connect a remote debugging session as outlined above
- Select the link with your session name above the debugging log
- Platform Assurance loads and shows detailed logging for all Adobe applications configured in the data stream for your implementation
- Filter the log by
adobe.target
- Select a log entry with the type
com.adobe.target.trace
- Expand the details of the payload and view the information under
context > targetTrace
{modal="regular"}
Examine network request and response
The request payload and response of the Platform Web SDK sendEvent
calls differ from at.js. The outline below should help you understand the structure of the request and response while examining the network calls with your browser’s developer tools.
Content request payload
{modal="regular"}
- Profile, entity, and other non-mbox parameters are passed in the events array under
data.__adobe.target
- Decision scopes are located in the events array under
query.personalization.decisionScopes
- XDM data which are mapped to mbox parameters downstream are located in the events array under
xdm
Content response body
{modal="regular"}
- The Platform Web SDK returns actions for all Adobe applications under the
handle
object - The
personalization:decisions
action signifies a response from Target or offer decisioning - Target propositions are presented as an array, each with a unique proposition ID prefixed with
AT:
- Decision scope and activity details are located within the propositions array
- Offer details are located in the
items
array underdata
- Response tokens are located in the
items
array undermeta
Proposition event payload
{modal="regular"}
- Target specific SDK events are either
decisioning.propositionDisplay
for an impression ordecisioning.propositionInteract
for an interaction, such as a click - The details of the proposition event are located in the events array under
xdm._experience.decisioning
- The proposition ID of the display or interaction event should match the proposition ID of the content returned from Target
Congratulations, you’ve reached the end of the tutorial! Good luck migrating your Adobe Target implementatoin to Web SDK!