Last active
August 29, 2015 14:22
-
-
Save ydn/b35d53b05612f6111a8d to your computer and use it in GitHub Desktop.
Capture Event Duration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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