# User tagging with SessionStorage variable?

**URL:** <https://community.dynatrace.com/t/user-tagging-with-sessionstorage-variable/11752>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-sessions, javascript\
**Created:** [May 16, 2018, 12:52pm UTC](https://community.dynatrace.com/t/user-tagging-with-sessionstorage-variable/11752 "2018-05-16T12:52:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieter\_dormael1](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pieter\_dormael1](https://community.dynatrace.com/u/pieter_dormael1)\
**Post date:** [May 16, 2018, 12:52pm UTC](https://community.dynatrace.com/t/user-tagging-with-sessionstorage-variable/11752/1 "2018-05-16T12:52:20Z")

</div>

Hello,

I’m trying to use a variable from the browser “Session Storage” as the user tag.

Using the “Cookie value” resulted in miserable failure, but I found some inspiration in this thread that tries to do something similar with the “Local Storage”:

[https://community.dynatrace.com/spaces/482/dynatrace…](https://community.dynatrace.com/spaces/482/dynatrace-open-qa/questions/196138/variable-localstorage-as-usertag-possible.html)

The variable name I can use has this format: company.application.applicationname-web-app.user.

The problem seems to be the strict ‘dot notation’ checking that seems to be enforced, which doesn’t agree with the ‘-’ characters in the variable name:

 ![16864-screenshot-from-2018-05-16-14-43-58.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/3/c3cddad1fb48136a6530dc3485bd654879de607b.png)

Any ideas if my concept would even work, or if I may be able to use some fancy escaping to be able to read the variable with a ‘-’ in the name?

Thanks,

Pieter

---

<div class="post-metadata">

**Author:** ![AlexanderSommer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alexandersommer/32/2501_2.png) [@AlexanderSommer](https://community.dynatrace.com/u/AlexanderSommer)\
**Post date:** [February 4, 2019, 3:29pm UTC](https://community.dynatrace.com/t/user-tagging-with-sessionstorage-variable/11752/2 "2019-02-04T15:29:47Z")

</div>

Theoretically this will work from the RUM JavaScript code side, but unfortunately we don’t allow the “-” from the UI. Till we fix it in the UI, you can create a support issue, so we change the configuration directly in the config.  
Please add a link to this post in your support case
