Skip to content

Instantly share code, notes, and snippets.

@ydn
Created June 22, 2015 20:51
Show Gist options
  • Save ydn/81e03afa4b8881161c07 to your computer and use it in GitHub Desktop.
Save ydn/81e03afa4b8881161c07 to your computer and use it in GitHub Desktop.
Timed Flurry Events with Parameters
// 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