<?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: Session property for web vs mobile application in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229295#M5474</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/52140"&gt;@Weilin1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, &lt;STRONG&gt;sendSessionProperties&lt;/STRONG&gt; and&lt;STRONG&gt; addActionProperties&lt;/STRONG&gt; in web applications and &lt;STRONG&gt;reportValue&lt;/STRONG&gt; in mobile applications serve a similar purpose of enriching session and action data with custom properties, they are tailored to the specific requirements and best practices of web and mobile platforms respectively.&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 10:51:30 GMT</pubDate>
    <dc:creator>radek_jasinski</dc:creator>
    <dc:date>2023-11-20T10:51:30Z</dc:date>
    <item>
      <title>Session property for web vs mobile application</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229278#M5470</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find out more about session and action property.&lt;/P&gt;&lt;P&gt;Understand that for web application, there is RUM JavaScript API for me to add session and action property through&amp;nbsp;&lt;SPAN&gt;sendSessionProperties and addActionProperties().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for mobile, i can use reportValue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hence i would like to ask if they function the same way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding Session Property&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Web:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var js_role = { js_role: "staff" };
window.dtrum.sendSessionProperties(null, null, js_role);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Mobile:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dynatrace.reportStringValue("js_role", "staff");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add Action Property&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Web&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    var rating;
    function submitForm(value) {
        fetch('https://example.com/submit')
        .then(response =&amp;gt; response.json())
        .then(data =&amp;gt; {
            if (typeof dtrum === "undefined") return;
            
            // Add Action Listener
            rating = { js_rating: value };
            window.dtrum.addEnterActionListener(addRatingToAction);
            
            // Add Custom Action 
            var submtitForm = window.dtrum.enterAction('Submit Form');
            window.dtrum.leaveAction(submtitForm);
            
            // Remove Action Listener
            window.dtrum.removeEnterActionListener(addRatingToAction);
    
        })
        .catch(error =&amp;gt; {
            console.error('API Error:', error);
        });
    }
    
    // Add Action Properties 
    function addRatingToAction(actionId) {
        window.dtrum.addActionProperties(actionId, null, null, rating);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Mobile&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let myAction = Dynatrace.enterAutoAction("Submit Form");
myAction.reportStringValue("js_rating", value);
myAction.leaveAction();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- is this correct?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:03:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229278#M5470</guid>
      <dc:creator>Weilin1</dc:creator>
      <dc:date>2023-11-20T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Session property for web vs mobile application</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229295#M5474</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/52140"&gt;@Weilin1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, &lt;STRONG&gt;sendSessionProperties&lt;/STRONG&gt; and&lt;STRONG&gt; addActionProperties&lt;/STRONG&gt; in web applications and &lt;STRONG&gt;reportValue&lt;/STRONG&gt; in mobile applications serve a similar purpose of enriching session and action data with custom properties, they are tailored to the specific requirements and best practices of web and mobile platforms respectively.&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:51:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229295#M5474</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-20T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Session property for web vs mobile application</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229302#M5475</link>
      <description>&lt;P&gt;Just for the record - for web apps, you won't see any values until properties are configured for the web application in Dynatrace. For mobile applications it's different, you will still see the values in user action waterfall screens (very convenient and useful), and they will act as user action property just after you defined them. That's why the difference - sendActionProperties vs. reportValue.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:25:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Session-property-for-web-vs-mobile-application/m-p/229302#M5475</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-11-20T11:25:31Z</dc:date>
    </item>
  </channel>
</rss>

