Page and Screen are similar and are triggered by a user viewing a page or screen, however Page calls can come from both web and mobile-web views, while Screen calls only occur on mobile devices. Events can occur multiple times, but generate separate records which append to a list, instead of being updated over time.Ī Track call is the most basic type of call, and can represent any type of event. The other three, Track, Page, and Screen, can be considered as increasingly specific types of events. Objects are described using “traits”, which you can collect as part of your calls. You can think of these calls as adding information to, or updating an object record in a database. Group: What account or organization are they part of?Īmong these calls, you can think of Identify, Group, and Alias as similar types of calls, all to do with updating our understanding of the user who is triggering Segment messages.
There are six calls in the basic tracking API, which answer specific questions: We also provide recommended JSON structure (also known as a schema, or ‘Spec’) that helps keep the most important parts of your data consistent, while allowing great flexibility in what other information you collect and where. Segment’s libraries generate and send messages to our tracking API in JSON format, and provide a standard structure for the basic API calls. Before you start implementing from your tracking plan, let’s review the Segment methods, what they do, and when you should use each.