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
track
method (example below) - Post a JSON body to Split's
events
API - 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 track
method of the SDK in Javascript. See links above for the API and integration routes.
// parameters
var queued = client.track('TRAFFIC_TYPE', 'EVENT_TYPE', eventValue);
// Example
var queued = client.track('user', 'page_load_time', 83.334)
Learn more in the track section of each SDK reference guide (Javascript example).
To help verify that events are being received by Split, from the left navigation, clici Admin settings and then Event types. There you can see event types and a stream of events per event type. Learn more about events.
Comments
0 comments
Please sign in to leave a comment.