Skip to content

Instantly share code, notes, and snippets.

@Bisera
Last active August 29, 2015 13:57
Show Gist options
  • Save Bisera/9422097 to your computer and use it in GitHub Desktop.
Save Bisera/9422097 to your computer and use it in GitHub Desktop.
// Capture author info & user status
NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys:
@"John Q", @"Author",
@"Registered", @"User_Status",
nil];
[Flurry logEvent:@"Article_Read" withParameters:articleParams timed:YES];
// In a function that captures when a user navigates away from article
// You can pass in additional params or update existing ones here as well
[Flurry endTimedEvent:@"Article_Read" withParameters:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment