Analytics¶
Every analytics event SE.Live reports, and the exact payload each one carries. Three separate programs report: the plug-in itself, the Windows installer and the Windows uninstaller. They all post to one endpoint, in one envelope, and nothing else in the product reports anything.
This is the companion to the architecture chapters, which describe how the plug-in is built, and to the JavaScript OBS API reference, which describes the surface a page sees. These pages document what leaves the machine.
The ten-second version¶
| producer | feature |
events | source |
|---|---|---|---|
| the plug-in | obs_selive_core_plugin |
8 | streamelements/SEAnalyticsEventsManager.cpp |
| the installer | obs_core_plugin_installer |
9 | CI/obs-streamelements-installer/main.nsi |
| the uninstaller | obs_core_plugin_uninstaller |
5 | CI/obs-streamelements-uninstaller/main.nsi |
Twenty-two event names in all. Every payload goes to
https://api.streamelements.com/science/insert/obslive as
application/json, and feature is the only field that reliably says
which program sent it — see
Reading the data.
_meta keys, the extra fields
and even the JSON wrapping — the differences are listed in
The envelope.The pages¶
- The envelope — the props every event carries, the
fieldsarray and why it is an array of pairs,_meta, and the four places where the three producers disagree about the shape. - Identity and sessions — where
hostMachineIdcomes from, why all three producers resolve the same value on Windows, what asessionIdcovers, and what can therefore be joined to what. - Plug-in events — the 8 events, their payloads, and which three of them only exist in some builds.
- Installer events — the 9 events as the funnel they form, the fields unique to the installer, and the three abort paths.
- Uninstaller events — the 5 events, and the two fields it reports empty.
- Reading the data — the traps between this catalogue and a correct query: naming that breaks its own convention, build-conditional events, what no event answers.
- Adding an event — the recipe in each of the three producers, and what to decide before writing one.
Where the authority is¶
The source is the truth: SEAnalyticsEventsManager::AddRawEvent for the
plug-in and the SendTrackingEvent function in each NSIS script. These
pages summarise and connect them, and a disagreement means a page needs
fixing.
Two of the pipeline's properties are also pinned by the test suite rather
than only written down —
check_wyvrn_init_reports_its_outcome_to_analytics and
check_the_analytics_managers_shared_state_is_atomic, both in
tests/test_source_invariants.cpp. See
Enforced invariants.
Where the data is¶
The events are read in the SE.Live analytics dashboard, which is internal and Superset-hosted:
observatory.streamelements.dev/superset/dashboard/p/EwdyM758jQG
Every chart there is built on the payloads catalogued here, which is why Reading the data is worth reading before trusting a number: several of the traps on that page — the WYVRN denominator, the partial crash count, the missing uninstall version — are invisible in a chart and decisive for what it means.
What this is not¶
It is not a description of what happens to an event after the POST. The endpoint, its storage and the dashboard's own queries and derived metrics live outside this repository, so the catalogue stops at the wire.
It is also not the crash-reporting path. Crash reports go to Sentry or
BugSplat with their own payloads, documented in
Diagnostics.
The one analytics event that overlaps is OBS Studio Crashed, which is a
count rather than a report — see
Plug-in events.