Dynatrace real user monitoring relies on browser cookies to correlate user interactions in the browser (i.e., user actions) with general page and backend performance metrics. Cookies are used to
- Monitor site performance
- Analyze website usage
- Track user behavior
HTTPOnly flag. Cookies must be included with each request so that user actions can be correlated with backend performance.
You can use the
Secure cookie flag, however this leads to loss of visibility into any unencrypted HTTP communication.
The following table provides an overview of cookie usage in Dynatrace.
|dtCookie/rxsession*||<randomValue> | <encoded application info>||session|
|dtLatC/rxlatency*||Measured latency to server||session|
|dtSa||<URL-encoded action name**>||session|
|rxsession||<randomValue> | <application info>||session|
* Cookies can be given alternative names. This enables you to simultaneously monitor some applications with Dynatrace OneAgent and others with AppMon instrumentation&all on the same domain.
dtSa cookie is used to save user action names, such as
sessionStorage to store a backup of
dtCookie/rxsession because certain browsers delete random cookies when too many cookies are used. Dynatrace sets the following two keys (see the table above for examples):
localStorage. The following table gives an overview of the key/value pairs that Dynatrace writes to local storage.