Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Events are tracked using the Split.track() method
//
// The format is as follows:
// split.track(CUSTOMER_ID, TRAFFIC_TYPE, EVENT_TYPE, VALUE)
// Example #1: Track page load time
split.track(USER_ID, "user", "page_load_time", 5.5346);
// Example #2: Track API response time
split.track(USER_ID, "user", "api_response_time", 1.7459);
// Example #3: Track database query time
split.track(USER_ID, "user", "db_query_time", 0.2434);
// Example #4: Track clicks or engagements
split.track(USER_ID, "user", "clicked_purchase_button");
// Example #5: Track support ticket count creations
split.track(USER_ID, "user", "created_support_ticket");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.