Send event data
Measure the impact of your feature rollout on your customer experience by sending Split event data and calculating metrics based on those events. Events allow you to record any actions your users perform and experiences your users encounter, such as response times or errors.
Event data can be sent to Split in one of three ways:
- Call Split's SDK
trackmethod (example below)
- Post a JSON body to Split's
- Split integrations with Segment, mParticle, Sentry, Amazon S3, or Google Analytics
The API and integration routes allow you to ingest event data from existing sources (i.e. take advantage of telemetry from existing instrumentation or analytics). Use the
track method if you want to explicitly add instrumentation code to your application to record events.
Below is an example of calling the
// parameters var queued = client.track('TRAFFIC_TYPE', 'EVENT_TYPE', eventValue); // Example var queued = client.track('user', 'page_load_time', 83.334)
To help verify that events are being received by Split, click over admin settings > event types. There you can see event types and a stream of events per event type. Learn more about events.