# Agentless monitoring of Angular 10 application

**URL:** <https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [November 20, 2020, 3:37pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855 "2020-11-20T15:37:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias\_ronnlun](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mathias\_ronnlun](https://community.dynatrace.com/u/mathias_ronnlun)\
**Post date:** [November 20, 2020, 3:37pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/1 "2020-11-20T15:37:05Z")

</div>

I have an angular application with routing. I have instrumented it by adding this

\<script type=“text/javascript” src=“[Dynatrace | Observability built for the age of AI](https://js-cdn.dynatrace.com/jstag/xxx/yyy/zzz_complete.js)” crossorigin=“anonymous”\>\</script\>

as the first element in the head -element. I have indicated in the settings that the site is Angular and Dynatrace has also listed that is has detected that framework.

Dynatrace is working as it should be a the first page is loaded, but on subsequent page loads that are done with Angular routing the navigation events are not picked up.

The site can be seen here: [https://spaindexing-dev-web.azurewebsites.net/](https://spaindexing-dev-web.azurewebsites.net/)

What is needed for routing events to be tracked? Google analytics is being triggered when navigating.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 20, 2020, 4:58pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/2 "2020-11-20T16:58:18Z")

</div>

Dynatrace creates user actions in a user session only if the user activity results into a network request.  
Did you enable your specific Angular support and/or generic XHR/fetch support in “Async requests and single page apps” in settings of your application in Dynatrace UI?

By default, only Load actions are captured and your site is a single page application.

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [November 24, 2020, 12:50pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/3 "2020-11-24T12:50:35Z")

</div>

please check what’s needed to properly instrument your angular app on the framework detection page. Enabling “Angular” (detection alone is not sufficient) will tell you all the steps that are needed. Navigation events (i.e., route changes) are only captured whenever they are tied to web requests (XHR) requests. Referring to [@Julius L.](https://answers.dynatrace.com/users/16467/view.html) either use the dedicated angular support as mentioned above or go for the generic support. Don’t use both!

---

<div class="post-metadata">

**Author:** ![mathias\_ronnlun](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mathias\_ronnlun](https://community.dynatrace.com/u/mathias_ronnlun)\
**Post date:** [November 26, 2020, 2:54pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/4 "2020-11-26T14:54:30Z")

</div>

We have the Angular setting on

![27431-1606402163230.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7be79a0bfff18682b118777c3459a64f90028dfc.png)

and also the XHR

![27425-1606402180667.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/62b4a75fb1877aa70e32217d19f9b6400ccc2229.png)

My question is that is it possible to monitor firstContentfulPaint for both when a user comes in to a SPA site and when he navigates to the next view using the spa framework’s routing?

 ![1606402142316.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/3/b3e4b8b374e911d5f9bf4801ca4c900c4fc34087.png)

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [February 20, 2021, 10:01am UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/5 "2021-02-20T10:01:39Z")

</div>

First off, sorry for the late reply, I missed your second question!

**LCP and the other core web vitals are only available** for Load action. Also referred to as “initial page loads” or “direct hits”. **They are not available for SPA route changes, since the API does not reset values such as LCP after a “soft navigation” using the SPA router.** Many requested this already with the API team but sadly, it still isn’t available…

PS: Please revise your set-up because **you either use the dedicated Angular (JS) support**, which means you enable that switch and follow the instrumentation guidelines, **or you enable the other other two toggles for XHR and fetch(),** since this is an either or decision.

regards

Thomas

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [August 30, 2022, 12:27pm UTC](https://community.dynatrace.com/t/agentless-monitoring-of-angular-10-application/20855/6 "2022-08-30T12:27:04Z")

</div>

[@zietho](https://community.dynatrace.com/user/23400)&nbsp;may be good to make this concern more obvious in the UI by making a note in the generic section?
