<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: User tag - Not supported JavaScript expression in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123817#M2313</link>
    <description>&lt;P&gt;With google you can easily search for how to list all global JS variables in Chrome console.&lt;BR /&gt;eg. you can run&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;for(var b in window) { &lt;/P&gt;&lt;P&gt;  if(window.hasOwnProperty(b)) console.log(b); &lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;as page below sugggest&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/2934787/view-list-of-all-javascript-variables-in-google-chrome-console"&gt;https://stackoverflow.com/questions/2934787/view-list-of-all-javascript-variables-in-google-chrome-console&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;Then use the value you need in Dynatrace&lt;BR /&gt;Please mind only global variables are accessible. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Oct 2019 08:22:51 GMT</pubDate>
    <dc:creator>janusz_dabrowsk</dc:creator>
    <dc:date>2019-10-01T08:22:51Z</dc:date>
    <item>
      <title>User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123816#M2312</link>
      <description>&lt;P&gt;Hello community.&lt;/P&gt;
&lt;P&gt;I can`t add JavaScript variable in user tag rule with message "Not supported JavaScript expression"&lt;/P&gt;
&lt;P&gt;&lt;IMG class="fr-fic fr-fil fr-dib" src="https://community.dynatrace.com/legacyfs/online/22031-1569915644667.png" border="0" data-filename="1569915644667.png" data-fileid="22031" data-size="27.5 kB" data-url="/storage/attachments/22031-1569915644667.png" data-urlfilename="22031-1569915644667.png" data-isimage="true" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why i can`t use JS variables from local storage?&lt;/P&gt;
&lt;P&gt;I have no cookies, CSS selector with username. I have only this JS value. Is there any workaround without JS dtrum sdk with dtrum.identify.... to use this value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 14:36:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123816#M2312</guid>
      <dc:creator>Romanenkov_Alex</dc:creator>
      <dc:date>2021-04-26T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123817#M2313</link>
      <description>&lt;P&gt;With google you can easily search for how to list all global JS variables in Chrome console.&lt;BR /&gt;eg. you can run&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;for(var b in window) { &lt;/P&gt;&lt;P&gt;  if(window.hasOwnProperty(b)) console.log(b); &lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;as page below sugggest&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/2934787/view-list-of-all-javascript-variables-in-google-chrome-console"&gt;https://stackoverflow.com/questions/2934787/view-list-of-all-javascript-variables-in-google-chrome-console&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;Then use the value you need in Dynatrace&lt;BR /&gt;Please mind only global variables are accessible. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:22:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123817#M2313</guid>
      <dc:creator>janusz_dabrowsk</dc:creator>
      <dc:date>2019-10-01T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123818#M2314</link>
      <description>&lt;P&gt;Have you tried: localStorage.&amp;lt;variableName&amp;gt;?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:31:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123818#M2314</guid>
      <dc:creator>AlexanderSommer</dc:creator>
      <dc:date>2019-10-01T08:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123819#M2315</link>
      <description>&lt;P&gt;Hello Janusz, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My question is not "HOW". My question is "WHY it is not possible to use this value"&lt;/P&gt;&lt;P&gt;I use this:&lt;/P&gt;&lt;TABLE style="width:100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width:100%"&gt;&lt;P&gt;(function ()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;   var keys=Object.keys( window );&lt;/P&gt;&lt;P&gt;   for (var i in keys)&lt;/P&gt;&lt;P&gt;   {&lt;/P&gt;&lt;P&gt;      if (typeof window[keys[i]] != 'function')&lt;/P&gt;&lt;P&gt;      console.log(keys[i], window[keys[i]]);&lt;/P&gt;&lt;P&gt;   }&lt;/P&gt;&lt;P&gt;})();&lt;/P&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have see this value and can call from web browser console.  After cleanup rules (cut usernames and symbols (.:") i will have correct login.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:34:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123819#M2315</guid>
      <dc:creator>Romanenkov_Alex</dc:creator>
      <dc:date>2019-10-01T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123820#M2316</link>
      <description>&lt;P&gt;Hello Alexander&lt;/P&gt;&lt;P&gt;I can`t call localStorage.&amp;lt;variableName&amp;gt;, but i can cal localStorage["some"] - 2 string on screenshot.&lt;/P&gt;&lt;P&gt;You can see  localStorage call in browser console on screenshot below:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/22033-1569922044786.png" /&gt;&lt;/P&gt;&lt;P&gt;Can i use localStorage variable with cleanup rules? Will it works?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2019 09:31:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123820#M2316</guid>
      <dc:creator>Romanenkov_Alex</dc:creator>
      <dc:date>2019-10-01T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123821#M2317</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;So explanation.&lt;BR /&gt;Variable name contained dash so in Chrome console - format as below&lt;/P&gt;&lt;PRE&gt;localStorage.__Sxxe-Sxxxxxx-RxxxxxxService_Sxxx_Sxxxxx_RxxxxxxyService&lt;/PRE&gt;&lt;P&gt;did not work&lt;BR /&gt;&lt;BR /&gt;in Chrome console - format as below&lt;/P&gt;&lt;PRE&gt;localStorage["__Sxxe-Sxxxxxx-RxxxxxxService_Sxxx_Sxxxxx_RxxxxxxyService"]&lt;/PRE&gt;&lt;P&gt;returned requested value.&lt;/P&gt;&lt;P&gt;Fortunatelly syntax&lt;/P&gt;&lt;PRE&gt;localStorage.__Sxxe-Sxxxxxx-RxxxxxxService_Sxxx_Sxxxxx_RxxxxxxyService &lt;/PRE&gt;&lt;P&gt;worked in Dynatrace despite dashes.&lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Oct 2019 12:53:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123821#M2317</guid>
      <dc:creator>janusz_dabrowsk</dc:creator>
      <dc:date>2019-10-01T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123822#M2318</link>
      <description>&lt;P&gt;Janusz provided me solution as:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/22035-1569934199574.png" style="width:549px" /&gt;&lt;/P&gt;&lt;P&gt;In browser console the call executed with error but in Dynatrace we have successfully defined userlogins. &lt;/P&gt;&lt;P&gt;Big thanks to Janusz.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2019 12:55:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123822#M2318</guid>
      <dc:creator>Romanenkov_Alex</dc:creator>
      <dc:date>2019-10-01T12:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123823#M2319</link>
      <description>&lt;P&gt;I have similar problem. Pega application handles the user names via json. Dyantrace user tagging rule is unable to capture the user names from it.&lt;/P&gt;
&lt;P&gt;Tried variable - pxUserIdentifier, pxRequestor.pxUserIdentifier but not working. Have a tkt open though.&lt;/P&gt;
&lt;P&gt;Mean while anyone has any clue how to set this up, please let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 07:33:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/123823#M2319</guid>
      <dc:creator>skanchalwar2</dc:creator>
      <dc:date>2023-02-15T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: User tag - Not supported JavaScript expression</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/204779#M4145</link>
      <description>&lt;P&gt;did you get any response for localstorage with dot ??&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 16:34:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-tag-Not-supported-JavaScript-expression/m-p/204779#M4145</guid>
      <dc:creator>ankitmkgupta</dc:creator>
      <dc:date>2023-02-14T16:34:52Z</dc:date>
    </item>
  </channel>
</rss>

