orta/Puttio — pull request #5 by dbgrandi (2012-07-18 14:32:40+00:00)
Title: added some user level analytics

added some user level counters to the analytics. currently measuring simple counts on how many movies people watch.

Some things are measure twice, e.g.

if ( [self.moviePlayer isAirPlayVideoActive] ) {
[Analytics event:@"Using Airplay"];
[Analytics incrementCounter:@"Using Airplay" byInt:1];
}

This is due to the nature of user level counters being handy for slicing users into cohorts, while the generic event is useful for seeing aggregated stats. I may be using Mixpanel incorrectly.

Things that HAVE been added to this pull:
- added a method on Analytics to increment a counter
- measure when a user launches the app
- measure when a user starts/stops a movie
- measure when the user uses Airplay
- measure when the user hits Reload
- added the Put.io diskQuota info to our NSUserDefaults and monitor it for changes
- measure when a user updates/downgrades their Put.io account
- measure when a user switches the useCreativeCommons switch
- measure when a user deletes a remote/local file
- measure when a user logs out

Things that have NOT been added to this pull:
- setting of SuperProperties that are added to all metrics
- measuring total time spent watching movies
- recording device info (iOS version, iPad/iPhone)
- turning specific failures (Mininova, Fenopy, Isohunt) into generic fail events with details as metadata on those events