Analytics API
Answers to common questions about the Analytics API: how fresh the data is, what the IDs mean, and why API numbers can differ from the dashboards.
Data freshness
Is Analytics API data real-time?
Almost. Data is updated continuously, with a delay of up to 15 minutes. Whenever you query the API, the data you get back is at most 15 minutes old.
Users and IDs
Why do some tracking events have a null user_id?
When a user isn't logged in to the Swapcard app, user_id is NULL. This happens when your event is accessible to users in guest mode.
Are IDs unique?
Yes. IDs of people, exhibitors, sessions and other objects are unique. When an object is deleted, its ID is never reused.
Metrics
Why don't the API numbers match the dashboards, UI or reports?
There are two common reasons:
- Different time range. Make sure you request the same period as the one selected in the interface.
- Exact versus approximate counts. The API returns the exact unique count of users, while the interface uses approximation algorithms.
How is platform usage computed?
In the interface, the number of active users is the approximate distinct count of user_id values that performed at least one of these actions:
event_showevent_view_showexhibitor_self_show