Example
Here’s a complete example of a track call:
Connections
Spec: Track
The track API call is how you record any actions your users perform, along with any properties that describe the action.
Each action is known as an event. Each event has a name, like User Registered, and properties. For example, a User Registered event might have properties like plan or accountType. Calling track in one of our connections is one of the first steps to getting started with Innkeepr.
Here’s the payload of a typical track call with most common fields removed:
And here’s the corresponding JavaScript event that would generate the above payload:
Beyond the common fields, the track call has the following fields: