You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom user attributes can be used to group and filter data in the Insights dashboard, helping you understand usage patterns of different user groups.
292
-
</Tip>
280
+
<Warning>
281
+
Only standard user fields are supported: `id`, `name`, `email`, and `anonymous_id`. Other user attributes are not supported. If needed, configure them under `context`.
Copy file name to clipboardExpand all lines: en/rum/sdk/android/data-collection.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The SDK automatically attaches the following system context to help diagnose per
47
47
| OS information | Android version, major version, build number, locale, time zone | Diagnose OS-version or region-specific issues |
48
48
| Network information | Network type, cellular technology, carrier name, uplink/downlink bandwidth, signal strength | Analyze how network quality affects user experience |
49
49
| RUM events | View, Action, Resource, Error, Long Task, app startup timing | Reconstruct user journeys and diagnose errors or performance bottlenecks |
50
-
| User information |`usr.id`, `usr.name`, `usr.email`, and custom attributes | Attached only when your app explicitly sets user data through the API |
50
+
| User information |`usr.id`, `usr.name`, `usr.email`, `usr.anonymous_id`| Attached only when your app explicitly sets user data through the API; other user attributes are not supported. If needed, configure them under `context`|
51
51
52
52
<Info>
53
53
The geo-location fields documented below are inferred by the Flashduty backend from the client request IP address. They are not collected from Android system location APIs. The SDK does not call GPS, cell-tower location, or fused location APIs, and it does not require location permissions.
@@ -189,10 +189,11 @@ You can set user information via the `setUser()` API, which will be attached to
189
189
|`usr.id`| string | User's unique identifier |
190
190
|`usr.name`| string | User's friendly name |
191
191
|`usr.email`| string | User's email address |
192
+
|`usr.anonymous_id`| string | Anonymous user identifier |
192
193
193
-
<Tip>
194
-
You can also add custom user attributes such as `usr.plan`, `usr.role`, etc.
195
-
</Tip>
194
+
<Note>
195
+
Only the standard user fields above are supported. Other user attributes are not supported. If needed, configure them under `context`.
Copy file name to clipboardExpand all lines: en/rum/sdk/ios/advanced-config.mdx
+6-13Lines changed: 6 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ RUMMonitor.shared().addError(
172
172
</Tab>
173
173
</Tabs>
174
174
175
-
### Add User Attributes
175
+
### Set User Information
176
176
177
177
Set user information for the current session:
178
178
@@ -184,11 +184,7 @@ import DatadogCore
184
184
Datadog.setUserInfo(
185
185
id: "user-123",
186
186
name: "John Doe",
187
-
email: "john.doe@example.com",
188
-
extraInfo: [
189
-
"plan": "premium",
190
-
"signup_date": "2024-01-15"
191
-
]
187
+
email: "john.doe@example.com"
192
188
)
193
189
```
194
190
</Tab>
@@ -200,17 +196,14 @@ Datadog.setUserInfo(
200
196
[DDDatadog setUserInfoWithId:@"user-123"
201
197
name:@"John Doe"
202
198
email:@"john.doe@example.com"
203
-
extraInfo:@{
204
-
@"plan": @"premium",
205
-
@"signup_date": @"2024-01-15"
206
-
}];
199
+
extraInfo:nil];
207
200
```
208
201
</Tab>
209
202
</Tabs>
210
203
211
-
<Tip>
212
-
Custom user attributes can be used to group and filter data in the Insights dashboard.
213
-
</Tip>
204
+
<Warning>
205
+
Only standard user fields are supported: `id`, `name`, `email`, and `anonymous_id`. Other user attributes are not supported. If needed, configure them under `context`.
Copy file name to clipboardExpand all lines: en/rum/sdk/ios/data-collection.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,11 +122,16 @@ You can enable user tracking on all RUM events to correlate user sessions and si
122
122
|`usr.id`| String | User unique identifier |
123
123
|`usr.name`| String | User-friendly name, displayed by default in RUM UI |
124
124
|`usr.email`| String | User email address, displayed if no username |
125
+
|`usr.anonymous_id`| String | Anonymous user identifier |
125
126
126
127
<Tip>
127
128
User attributes are optional but we recommend providing at least one. See [Track User Information](/en/rum/sdk/ios/sdk-integration#track-user-information).
128
129
</Tip>
129
130
131
+
<Note>
132
+
Only the standard user fields above are supported. Other user attributes are not supported. If needed, configure them under `context`.
Copy file name to clipboardExpand all lines: en/rum/sdk/ios/sdk-integration.mdx
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -419,17 +419,13 @@ import DatadogCore
419
419
Datadog.setUserInfo(
420
420
id: "user-123",
421
421
name: "John Doe",
422
-
email: "john.doe@example.com",
423
-
extraInfo: [
424
-
"plan":"premium",
425
-
"signup_date":"2024-01-15"
426
-
]
422
+
email: "john.doe@example.com"
427
423
)
428
424
```
429
425
430
-
<Tip>
431
-
Custom user attributes (like `plan`, `signup_date`) can be used to group and filter data in the Insights dashboard.
432
-
</Tip>
426
+
<Warning>
427
+
Only standard user fields are supported: `id`, `name`, `email`, and `anonymous_id`. Other user attributes are not supported. If needed, configure them under `context`.
0 commit comments