# Is it possible to enable Javascript Agent tracking all XHR requests, not only those which are bound to user actions?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503>\
**Category:** Real User Monitoring\
**Tags:** user-actions, javascript\
**Created:** [August 7, 2018, 2:06pm UTC](https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503 "2018-08-07T14:06:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzianis\_shutiko](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dzianis\_shutiko](https://community.dynatrace.com/u/dzianis_shutiko)\
**Post date:** [August 7, 2018, 2:06pm UTC](https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503/1 "2018-08-07T14:06:15Z")

</div>

Hello.

Javascript Agent code tracks XHR queries only after some user action (for example, mouse click). But our application sends multiple XHR requests that aren’t bound with the user’s actions (e.g. polling for data). Such queries are not reflected in the collected metrics. Is it possible to enable Javascript Agent tracking all XHR requests, not only those which are bound to user actions?

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [August 9, 2018, 11:37am UTC](https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503/2 "2018-08-09T11:37:44Z")

</div>

Hi Denis,

you could activate unlinked XHR detection in the advanced setup of your applications. Use the property cux=1 (see screenshot)

Be aware that if activated a lot of data might be captured which you might not really be interested in 🙂

Kind regards, Philipp

 ![unlinked-xhr-detection.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/9/c9812d73aad5d2eaa52a7e1d5c80d638d8dcb555.png)

---

<div class="post-metadata">

**Author:** ![dzianis\_shutiko](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dzianis\_shutiko](https://community.dynatrace.com/u/dzianis_shutiko)\
**Post date:** [August 10, 2018, 11:01am UTC](https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503/3 "2018-08-10T11:01:11Z")

</div>

Thank you a lot!

---

<div class="post-metadata">

**Author:** ![Viachaslau](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Viachaslau](https://community.dynatrace.com/u/Viachaslau)\
**Post date:** [July 4, 2023, 2:24pm UTC](https://community.dynatrace.com/t/is-it-possible-to-enable-javascript-agent-tracking-all-xhr-requests-not-only-those-which-are-bound-to-user-actions/14503/4 "2023-07-04T14:24:36Z")

</div>

is it possible to customise behaviour? e.g. exclude some requests from recording as actions in this case e.g. GA request or facebook pixels
