Skip to content

Instantly share code, notes, and snippets.

@ydn
Last active August 29, 2015 14:22
Show Gist options
  • Save ydn/b35d53b05612f6111a8d to your computer and use it in GitHub Desktop.
Save ydn/b35d53b05612f6111a8d to your computer and use it in GitHub Desktop.
Capture Event Duration
// Capture the author info & user status
let articleParams = ["Author": "John Q", "User_Status": "Registered"];
Flurry.logEvent("Article_Read", withParameters: articleParams, timed: true);
// 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