cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

How do I enable SPA2 monitoring for applications using auto-injection?

Assuming you are already successfully auto-injecting the EUM JavaScript Agent, the following steps can be used to turn on SPA2 monitoring.

Successful Auto-Injection - 1.png

 

1. From the User Experience tab, double-click on the EUM application you'd like to enable SPA2 monitoring for. You'll be directed to the application's Browser App Dashboard. 

Browser App Dashboard.png

 

2. Once you are on the Dashboard, select the Configuration sub-tab at the bottom left of the window. 

User Experience Configuration Sub-Tab.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Select the option to "Configure JavaScript Agent" (see the screenshot above).

  

4. Select the "Advanced" option.

Configure JavaScript Agent  - 1.png

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Scroll down slightly to add the following custom configuration. 

(function(config){
    config.spa = {spa2:true};
})(window['adrum-config'] || (window['adrum-config'] = {})); 

 Configure JavaScript Agent - 2.png 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.  Scroll down and click "Save Config & Generate HTML Snippet."

Configure JavaScript Agent - 3.png

 

 

 

 

 

 

At this point, your EUM application will now have the SPA2 configuration enabled for auto-injection. Please send a load of traffic to the pages that are instrumented with auto-injection until you are able to see the configuration update.

Version history
Last update:
‎08-15-2018 09:50 AM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.