# Session Propertiers

**URL:** <https://community.dynatrace.com/t/session-propertiers/53503>\
**Category:** Real User Monitoring\
**Tags:** session-replay, real-user-monitoring-classic, user-actions, request-attributes, user-sessions, javascript\
**Created:** [September 24, 2025, 11:13pm UTC](https://community.dynatrace.com/t/session-propertiers/53503 "2025-09-24T23:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanrergis](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@juanrergis](https://community.dynatrace.com/u/juanrergis)\
**Post date:** [September 24, 2025, 11:13pm UTC](https://community.dynatrace.com/t/session-propertiers/53503/1 "2025-09-24T23:13:26Z")

</div>

I have a variable within my application that contains a Key and Value variable. How can I extract the variables to obtain this data from the user sessions? For example: the variable is called “offer.” Inside it is a JSON file containing different variables at various levels, payments: 10. I want to obtain payments.  
This is done in the session properties to obtain business data.

---

<div class="post-metadata">

**Author:** ![Anderson-Luna](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Anderson-Luna](https://community.dynatrace.com/u/Anderson-Luna)\
**Post date:** [September 24, 2025, 11:40pm UTC](https://community.dynatrace.com/t/session-propertiers/53503/2 "2025-09-24T23:40:28Z")

</div>

Hi if you’re using RUM JavaScript version 1.295 or later, Dynatrace supports direct JSON parsing from session storage or JavaScript variables.

##### Example:

If your variable is:

```markup
{
  "offer": {
    "payments": 10,
    "details": {
      "currency": "USD"
    }
  }

```

And it’s stored in sessionStorage.offer, you can extract payments like this:

1. Go to Application Settings → Capturing → Session and action properties.
2. Click Add property → Custom-defined property.
3. Set:
  - **Expression type** : JavaScript variable

  - **Key** : offer\_payments

  - **Value** : sessionStorage.offer.$payments

If your variable is already a JSON string, use sessionStorage.offer.$payments. If it’s a nested object, you can go deeper like sessionStorage.offer.$details.currency.

You can also check the official documentation for reference:&nbsp;[https://docs.dynatrace.com/docs/shortlink/user-session-properties](https://docs.dynatrace.com/docs/shortlink/user-session-properties?_gl=1*rtxvk5*_ga*MTA5OTAxNzM3Mi4xNzI3ODA4NjYw*_ga_1MEMV02JXV*czE3NTg3NTYwOTEkbzE0OCRnMSR0MTc1ODc1Njg1MCRqNjAkbDAkaDA.*_gcl_au*MTQxMzU4NTA4OC4xNzU1MTc4ODI0#examples-of-action-and-session-properties)
