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 four ways:
- Install Split's RUM Agent or Split Suite which will auto-collect performance event data when installed in a client-side application
- Call Split's SDK
track
method (example below) to explicitly add instrumentation code to your application to record events - Post a JSON body to Split's
events
API to ingest events data from existing sources - Split integrations with Segment, mParticle, Sentry, Amazon S3, or Google Analytics to ingest events data from existing sources
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 pane, click the user's initials at the bottom, select Admin settings, and click 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.