Skip to content

Instantly share code, notes, and snippets.

@jakebellacera
Last active November 13, 2018 21:23
Show Gist options
  • Save jakebellacera/54b730d212b18c8cdaad17d53b5eb5fe to your computer and use it in GitHub Desktop.
Save jakebellacera/54b730d212b18c8cdaad17d53b5eb5fe to your computer and use it in GitHub Desktop.
// 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