Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Revision #:
7 of 7
Last update:
‎08-15-2018 09:50 AM
Updated by:
 
Labels (1)


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.