<?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: React Native - Android - No Actions in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199411#M4714</link>
    <description>&lt;P&gt;The problem occurs only with newer RN version which include a newer metro version. So since metro 0.72 they changed the JSX Tag resolution.&lt;/P&gt;&lt;P&gt;If you have changed the babel.config.js already, this actually should work. What kind of Buttons do you use? Directly from React Native? After changing the babel.config.js, did you reset the cache of Metro? (--reset-cache)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 15:05:25 GMT</pubDate>
    <dc:creator>matthias_hochri</dc:creator>
    <dc:date>2022-11-29T15:05:25Z</dc:date>
    <item>
      <title>React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199345#M4711</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Doing a implementation of RN in a client we are facing 2 problems.&lt;/P&gt;&lt;P&gt;1- actions were not being capture we check the opt in its disabled but even so, it is necessary to set this as part of the main app.&lt;/P&gt;&lt;P&gt;opt in disabled&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_5-1669708531814.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8671i837DD21CD31D6391/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_5-1669708531814.png" alt="rgarzon1_5-1669708531814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;yet this its necessary. to capture the actions add this code to the app.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;let privacyConfig = new UserPrivacyOptions(DataCollectionLevel.UserBehavior , true);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Dynatrace.applyUserPrivacyOptions(privacyConfig);&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;this as part for my understanding its not working properly, because if the opt-in its disabled its not necesary to implement the privacy config.&lt;/P&gt;&lt;P&gt;now we are getting the actions as names ( icon names) but its something that we can handle. with dtActionName&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dtActionName: Use a custom property called dtActionName&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;well this its the 2 problem.&lt;/P&gt;&lt;P&gt;the client ask to to use dtActionName inside a button. in a test before implement it on their app. its required to see it working before.&lt;/P&gt;&lt;P&gt;in this journey (in theory easy one), i am using the default app that its created with npx command&lt;/P&gt;&lt;P&gt;&lt;EM&gt;npx react-native init dynajs --template react-native-template-typescript@latest&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;this create a app with RN 0.70.6 and i am adding some navigation tabs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_0-1669708202855.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8666iE4D75CF3FCF961F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_0-1669708202855.png" alt="rgarzon1_0-1669708202855.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_1-1669708240961.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8667iD0775A85A43A9039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_1-1669708240961.png" alt="rgarzon1_1-1669708240961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;its a simple one app for testing purposes. and i am facing the same problem. no regular actions are being capture,&lt;/P&gt;&lt;P&gt;i just create 3 tabs, 2 buttons and 2 touchable events.&lt;/P&gt;&lt;P&gt;the tab buttons arent being capture, the bizevent button neither, the "PRESIONAME" button its a Dynatrace.enterAction so its being captured. and a touchable event its no being capture.&lt;/P&gt;&lt;P&gt;last time this happen to me i just add the privacy config (even when its not necesary) and this work and started to capture actions on 0.67 version. now in RN 0.70.6 its not working the same recipe.&lt;/P&gt;&lt;P&gt;i just doing the normal thing&lt;/P&gt;&lt;P&gt;&lt;EM&gt;react-native start --reset-cache&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npx instrumentDynatrace&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npx react-native run-android&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;i am using even the default config that its made with npx dyntraceconfig command because the one that we can download its not working neither.&lt;/P&gt;&lt;P&gt;the logs just look fine.&lt;/P&gt;&lt;P&gt;#INFO [2022-11-29 02:30:26]: Starting instrumentation of React Native application ..&lt;BR /&gt;#INFO [2022-11-29 02:30:26]: Dynatrace React Native Plugin - Version 2.253.2&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Trying to read configuration file: D:\66-Programas\android\reactnativeapp\reactdyna\dynajs\dynajs\dynatrace.config.js&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Starting Android Instrumentation with Dynatrace!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Dynatrace plugin &amp;amp; agent already added to build.gradle&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Replaced old configuration with current configuration in dynatrace.gradle&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Finished Android Instrumentation with Dynatrace!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Starting iOS Instrumentation with Dynatrace!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Not generating a new plist as the current plist and dynatrace.config.js iOS properties are identical!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Finished iOS Instrumentation with Dynatrace!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Patching SourceMap generation of Metro ..&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Patching of SourceMap already happened!&lt;BR /&gt;#INFO [2022-11-29 02:30:27]: Finished instrumentation of React Native application ..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_10-1669709694285.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8676iFA89FDEC097F4CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_10-1669709694285.png" alt="rgarzon1_10-1669709694285.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if anyone have a idea. please i am open to try it. i really dont know what i am missing here.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 08:28:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199345#M4711</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2022-11-29T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199350#M4712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The problem is known already and is happening because internally the metro bundler changed the resolution of the JSX Tags. There will be an update this week.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:38:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199350#M4712</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2022-11-29T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199408#M4713</link>
      <description>&lt;P&gt;Thank you matthias.&lt;/P&gt;&lt;P&gt;so, the problem its only for 0.70+ or any react version ? . i even try to modify the babel as the documentation says. without success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_0-1669730718121.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8685i85CF57CDBC5D1271/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_0-1669730718121.png" alt="rgarzon1_0-1669730718121.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:49:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199408#M4713</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2022-11-29T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199411#M4714</link>
      <description>&lt;P&gt;The problem occurs only with newer RN version which include a newer metro version. So since metro 0.72 they changed the JSX Tag resolution.&lt;/P&gt;&lt;P&gt;If you have changed the babel.config.js already, this actually should work. What kind of Buttons do you use? Directly from React Native? After changing the babel.config.js, did you reset the cache of Metro? (--reset-cache)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:05:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199411#M4714</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2022-11-29T15:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199414#M4715</link>
      <description>&lt;P&gt;Hi matthias&lt;/P&gt;&lt;P&gt;i am trying with the most basic buttons.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;TouchableHighlight&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN&gt;"dtActionName"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"CustomActionName"&lt;/SPAN&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;Custom Action Name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;TouchableHighlight&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;export&lt;/SPAN&gt; &lt;SPAN&gt;class&lt;/SPAN&gt; &lt;SPAN&gt;Button&lt;/SPAN&gt; &lt;SPAN&gt;extends&lt;/SPAN&gt; &lt;SPAN&gt;React&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Component&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;ButtonProps&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; {}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_0-1669734877640.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8687iE1F2A3CDEE72F6EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_0-1669734877640.png" alt="rgarzon1_0-1669734877640.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;but maybe i am missing something. the client its working with the same but using the Atomic design..&lt;/DIV&gt;&lt;DIV&gt;for the deploy i do this every time.&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;react-native start --reset-cache&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npx instrumentDynatrace&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;npx react-native run-android&lt;/EM&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:25:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199414#M4715</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2022-11-29T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199450#M4716</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matthias_hochri_0-1669792013801.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8693i62E0A60A89E9E721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matthias_hochri_0-1669792013801.png" alt="matthias_hochri_0-1669792013801.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here you can see my example. I created a totally new RN project. Included a button. Logs are created with the title of the button (What log is only the content of the onPress). Later on I add a dtActionName MyName and it works as well.&lt;/P&gt;&lt;P&gt;I guess from this point we need to start a support ticket and we will happily look into this as we are interested if there is something we didn't consider.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:08:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199450#M4716</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2022-11-30T07:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199515#M4717</link>
      <description>&lt;P&gt;HI matthias.&lt;/P&gt;&lt;P&gt;i just go back to RN 0.69.5 , and all its working just fine. but in the 0.70.6 isnt it. even with metro modifications.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rgarzon1_0-1669825029999.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8707i3853B2452436A218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rgarzon1_0-1669825029999.png" alt="rgarzon1_0-1669825029999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the actions are being detected but skipped by the opt-in in the 0.70. is what i notice.&lt;/P&gt;&lt;P&gt;thank you for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:17:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199515#M4717</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2022-11-30T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199521#M4718</link>
      <description>&lt;P&gt;Okay that's odd. My example above is with 0.70.6. So what do you mean by opt-in, can you elaborate on that? Is it possible to host your sample project somewhere and I take a quick look? (Remove appId and beaconUrl from config)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:26:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199521#M4718</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2022-11-30T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199523#M4719</link>
      <description>&lt;P&gt;Hi Matthias.&lt;/P&gt;&lt;P&gt;one of our first problem was that the opt-in was disabled on the UI of the page but the actions were not being capture.&lt;/P&gt;&lt;P&gt;until we add to the app&lt;/P&gt;&lt;P&gt;let privacyConfig = new UserPrivacyOptions(DataCollectionLevel.UserBehavior , true);&lt;BR /&gt;Dynatrace.applyUserPrivacyOptions(privacyConfig);&lt;/P&gt;&lt;P&gt;and maybe we think well, was enable on the configuration "dynatrace.config.js" , but there as well was disabled with "userOptIn false"&lt;BR /&gt;so i was thinking that maybe its something related to it . actions being execute but not recorded.&lt;BR /&gt;related to the project: i was using this &lt;A href="https://github.com/rdlook04/gitreact" target="_blank"&gt;https://github.com/rdlook04/gitreact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:54:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/199523#M4719</guid>
      <dc:creator>rgarzon1</dc:creator>
      <dc:date>2022-11-30T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: React Native - Android - No Actions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/200118#M4720</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51579"&gt;@rgarzon1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am specific user actions not recorded when you used the userOptIn, and if it is set to true, then you have to use the configuration.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let privacyConfig = new UserPrivacyOptions(DataCollectionLevel.UserBehavior , true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dynatrace.applyUserPrivacyOptions(privacyConfig);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;In case you set it to false in dynatrace.config file, use the above code and initiate userOptIn, which won't capture user actions. Hence, I suppose this is what happened to you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 07:38:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/React-Native-Android-No-Actions/m-p/200118#M4720</guid>
      <dc:creator>theharithsa</dc:creator>
      <dc:date>2022-12-09T07:38:28Z</dc:date>
    </item>
  </channel>
</rss>

