PHP record taxonomy
Every field on every PHP record, nested ones included, with the type it carries and whether it is required.
Records the PHP server SDK sends: identity records, and the Track record that carries your own events.
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 server SDK has no page or session to report, so it does not fill sessionId or pageId.
| Attribute | Type | Required |
|---|
userId | String | No |