Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active February 17, 2016 19:25
Show Gist options
  • Select an option

  • Save flurrydev/42aae10df2d90396a590 to your computer and use it in GitHub Desktop.

Select an option

Save flurrydev/42aae10df2d90396a590 to your computer and use it in GitHub Desktop.
// Capture author info & user status
Map<String, String> articleParams = new HashMap<String, String>();
articleParams.put("Author", "John Q");
articleParams.put("User_Status", "Registered");
//Log the timed event when the user starts reading the article
//setting the third param to true creates a timed event
FlurryAgent.logEvent("Article_Read", articleParams, true);
//...
// End the timed event, when the user navigates away from article
FlurryAgent.endTimedEvent("Article_Read");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment