AppDynamics
The AppDynamics integration allows you to link DXA session replays with AppDynamics.
Use cases
-
Access session replays directly in AppDynamics to better understand behaviors in sessions surfaced in Browser Rule User Monitoring (BRUM)
-
Access DXA data metrics, such as DXS, from AppDynamics
Prerequisites
Enabling the AppDynamics integration
-
In AppDynamics, go to Configure JavaScript Agent.
-
In Configure JavaScript Agent, under Configure custom settings (optional), select Switch to advanced settings.
-
In the text box, enter the following JavaScript code:
(function (config) { (function (info) { if (sessionStorage && sessionStorage.getItem('_da_da_sessionId')) { var d_sid = 'di-xxxxx-' + sessionStorage.getItem('_da_da_sessionId'); info.PageView = function () { return { userData: { decibelSessionID: d_sid } } } } })(config.userEventInfo || (config.userEventInfo = {})) })(window['adrum-config'] || (window['adrum-config'] = {}));
-
Edit the
'di-xxxxx-'
value on the fourth line of JavaScript code above to include your property ID, e.g.'di-12345-'
. Ensure that you include thedi-
prefix and-
affix.Note: You can find your property ID in settings > Property Settings > Tracking Code. Learn more Tracking Code -
Click Save.
-
Copy the HTML snippet and redeploy the JavaScript file.
Your AppDynamics instance is now integrated with DXA. You can access session replays directly in AppDynamics when AppDynamics captures new session data.
Viewing DXA session replays in AppDynamics
-
In the same browser, log in to DXA in one tab and log in to AppDynamics in another tab.
-
In AppDynamics, go to Sessions.
-
In Sessions, under Fields > User Data, enable decibelSessionID.
A list of DXA sessions associated with AppDynamics sessions appears on the table. After a few seconds, the DXA session IDs will be hyperlinked.
-
In the decibelSessionId column, click a hyperlinked session ID to go to the session replay with associated metrics in DXA.
Troubleshooting
I can't see the DXA session IDs in AppDynamics |
Ensure that both DXA and AppDynamics are deployed on your property and that you've completed the steps in Enabling the AppDynamics integration. |
The session IDs aren't hyperlinked | Ensure that you've installed the DXA browser extension on Google Chrome or Mozilla Firefox and that you are logged into DXA in a tab on the same browser that you're using AppDynamics. |