Intempt Docs

PHP record taxonomy

Every field on every PHP record, nested ones included, with the type it carries and whether it is required.

Overview

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.

AnotherUserId

AttributeTypeRequired
anotherUserIdStringNo

EventId

AttributeTypeRequired
eventIdStringYes

Identify

AttributeTypeRequired
eventIdStringYes
profileIdStringYes
userIdStringNo
anotherUserIdStringNo
accountIdStringNo
sessionIdStringNo
timestampLongYes

ProfileId

AttributeTypeRequired
profileIdStringYes
userIdStringNo

Track

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.

AttributeTypeRequired
eventIdStringYes
profileIdStringYes
userIdStringNo
accountIdStringNo
sessionIdStringNo
pageIdStringNo
anotherUserIdStringNo
anotherAccountIdStringNo
sourceIdLongYes
timestampLongYes
dataRecord (free-form)Yes
userAttributesRecord (free-form)No
accountAttributesRecord (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.

UserId

AttributeTypeRequired
userIdStringNo

On this page