# Identify user session with mobile number

**URL:** <https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251>\
**Category:** Real User Monitoring\
**Tags:** session-replay, real-user-monitoring-classic, data-privacy-and-product-security, request-attributes\
**Created:** [April 23, 2024, 5:57am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251 "2024-04-23T05:57:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munzir](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Munzir](https://community.dynatrace.com/u/Munzir)\
**Post date:** [April 23, 2024, 5:57am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/1 "2024-04-23T05:57:27Z")

</div>

Hi There

Description: We have a Loan website, a potential user who is applying a user starts his journey after putting his Mobile Number and only then he can move forward with it. We are not storing any PII data.

We want to monitor the potential users journey who is not our customer as of now, **How can we tag the user sessions with Mobile Number, what all options do we have ??**

2) We have a SAAS environment, and since by default DT doesnt capture any PII data How can we configure to capture Mobile Number, I didnt find any options pertaining to allow such thing only thing I found is given below. **Please suggest.**

 ![Munzir_0-1713851786764.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/de52d0b230065fe2ebd59563acf9cabc63d04a39.png)

 ![Munzir_1-1713851807675.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f753c6ce1ac8c847f8d17a5b15f4b7dadafda00.png)

---

<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:** [April 23, 2024, 7:00am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/2 "2024-04-23T07:00:33Z")

</div>

Hi!

is this about a mobile application or a mobile browser? In general Dynatrace does not capture the mobile number by itself, you would need to get the mobile number and then tag the session with it (make sure using the phone number for identifying session is allowed by your users local privacy regulations)

---

<div class="post-metadata">

**Author:** ![Munzir](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Munzir](https://community.dynatrace.com/u/Munzir)\
**Post date:** [April 23, 2024, 7:10am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/3 "2024-04-23T07:10:10Z")

</div>

It is available on both Web and Mobile. Those users are Potentials users and not not currently customers. But still if we use tagging it will tag all the user sessions, and how do we ask DT to explicitly only capture Contact Number ??

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 23, 2024, 7:10am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/4 "2024-04-23T07:10:35Z")

</div>

Hi.

- You can create a [request attribute](https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/services/request-attributes) and&nbsp;set&nbsp; **Server-side request attribute** &nbsp;as&nbsp; **Source type**.

- You can also use a [Javascript variable](https://docs.dynatrace.com/docs/shortlink/user-tagging#add-a-user-tag-rule)&nbsp;if&nbsp;you are already sending your user’s identifier via a tag manager to other tools.

- Alternative you can use RUM API and tag user with “[identifyuser](https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#identifyUser)”

---

<div class="post-metadata">

**Author:** ![Munzir](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Munzir](https://community.dynatrace.com/u/Munzir)\
**Post date:** [April 23, 2024, 7:16am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/5 "2024-04-23T07:16:36Z")

</div>

Thanks&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713), If we create a Request Attribute for the same, can we filter it in the session segmentation.

Could you please explain how the RUM API for “identify user” can be configured.

---

<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:** [April 23, 2024, 8:27am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/6 "2024-04-23T08:27:30Z")

</div>

on mobile you also have the identifyUser API which will tag the session with whatever you provide it - see details in [this community post](https://community.dynatrace.com/topic/199952).

---

<div class="post-metadata">

**Author:** ![Munzir](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Munzir](https://community.dynatrace.com/u/Munzir)\
**Post date:** [April 23, 2024, 9:53am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/7 "2024-04-23T09:53:26Z")

</div>

Thanks&nbsp;[@Patrick\_H](https://community.dynatrace.com/user/31862)&nbsp;, can we use the&nbsp;identifyUser&nbsp;API&nbsp;for WEB as well, as u mentioned in the community it is only for mobile…

---

<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:** [April 23, 2024, 11:23am UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/8 "2024-04-23T11:23:44Z")

</div>

see answer from [@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;below this one - he links the RUM API&nbsp;[identifyuser](https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#identifyUser)&nbsp;which is for web

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 23, 2024, 12:28pm UTC](https://community.dynatrace.com/t/identify-user-session-with-mobile-number/45251/9 "2024-04-23T12:28:03Z")

</div>

Hi,

Maybe [this](https://community.dynatrace.com/post/211010) helps.

Best regards
