React Native record taxonomy
Every field on every React Native record, nested ones included, with the type it carries and whether it is required.
Records the React Native SDK sends: identity records, and the Track record that carries your own events. It does not autocapture, so the events are yours to define.
One section per record, one row per field. A record nested inside another is flattened into a dotted path, so data.targetText is the targetText field carried on that record's data. These schemas hold names and types only, so there are no example values here. A type in backticks names another record in this same source, which has its own section on this page.
| Attribute | Type | Required |
|---|
anotherUserId | String | No |
| Attribute | Type | Required |
|---|
eventId | String | Yes |
| Attribute | Type | Required |
|---|
eventId | String | Yes |
profileId | String | Yes |
userId | String | No |
anotherUserId | String | No |
accountId | String | No |
sessionId | String | No |
timestamp | Long | Yes |
| Attribute | Type | Required |
|---|
profileId | String | Yes |
userId | String | No |
A custom event: what track and record send. Each one is stored in a collection with the schema trackCollection, named after the event, so every event you send shares this envelope.
| Attribute | Type | Required |
|---|
eventId | String | Yes |
profileId | String | Yes |
userId | String | No |
accountId | String | No |
sessionId | String | No |
pageId | String | No |
anotherUserId | String | No |
anotherAccountId | String | No |
sourceId | Long | Yes |
timestamp | Long | Yes |
data | Record (free-form) | Yes |
userAttributes | Record (free-form) | No |
accountAttributes | Record (free-form) | No |
data, userAttributes and accountAttributes are free-form: their fields come from whatever your app sends, so the collection's schema grows with it. The platform also adds userAttributes.country, userAttributes.region and userAttributes.city. A client SDK also fills sessionId and pageId.
| Attribute | Type | Required |
|---|
userId | String | No |