# 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:** 1\
**Showing post:** 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?

---

_[View the full topic](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)._
