# Anonymous Users in React Native Mobile App

**URL:** <https://community.dynatrace.com/t/anonymous-users-in-react-native-mobile-app/31387>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring, data-privacy\
**Created:** [May 6, 2021, 1:05pm UTC](https://community.dynatrace.com/t/anonymous-users-in-react-native-mobile-app/31387 "2021-05-06T13:05:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joneswah](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joneswah](https://community.dynatrace.com/u/joneswah)\
**Post date:** [May 6, 2021, 1:05pm UTC](https://community.dynatrace.com/t/anonymous-users-in-react-native-mobile-app/31387/1 "2021-05-06T13:05:10Z")

</div>

We use Dynatrace within a React Native Mobile App.

We have followed the “Detailed React Native” instructions. - [https://www.npmjs.com/package/@dynatrace/react-native-plugin](https://www.npmjs.com/package/@dynatrace/react-native-plugin).

Which states we can call the identifyUser method.

```auto
Dynatrace.identifyUser("User XY");

```

This is called once the user is logged in and hence we know their name.

However, our client is still seeing a lot of anonymous sessions.

Am I correct in assuming that an anonymous session will convert into an identified sessions once we call this method? Eg the app is initially opened and the user has not yet logged in. They log in and then we identify them.

Are there any other steps we need to do to identify the user?

thanks

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [May 7, 2021, 5:02am UTC](https://community.dynatrace.com/t/anonymous-users-in-react-native-mobile-app/31387/2 "2021-05-07T05:02:36Z")

</div>

Based on your description of the problem, it could be that your Privacy config on Dynatrace could be clashing with the Identify User. I suggest that you check the configuration [Data privacy and security — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/section-data-privacy-and-security)

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 15, 2022, 8:53am UTC](https://community.dynatrace.com/t/anonymous-users-in-react-native-mobile-app/31387/3 "2022-07-15T08:53:41Z")

</div>

Keep in mind that this will not be carried over to new session (e.g. if app is restarted), so this has to be set again when an app relaunches, even if user login is cached.
