[IOS] integrated Flurry mobile app statistics Platform
As a benchmark platform in the field of mobile application statistical analysis, Flurry provides comprehensive functions, not only for data statistics and analysis, but also for App Circle advertising and promotion platforms. It can be said that Flurry is currently the most comprehensive mobile application statistical analysis product. In addition to counting various data indicators in a single application, it can also provide conversion statistics across applications and other functions for enterprise users. From the data statistics function of mobile apps, Flurry is also in the leading position. Its functional modules are reasonably set, have comprehensive analysis dimensions, and the analysis process is easy to understand, which is the most powerful.
1. Create a project
Register and download the SDK
After registration, create an application. The application information is only available in the Flurry management background, and does not need to match the actual application name. After the application is created, obtain the application id.
2. sdk Integration
Add the Flurry folder (including Flurry. h and libFlurry_6.3.0.a files) to the project.
Link Birnary With Libraries
Security. framework
SystemoConfiguration. framework
Import Flurry. h to project name. pch
-(BOOL) application :( UIApplication *) application didfinishlaunchingwitexceptions :( NSDictionary *) launchOptions {// After Flurrry statistics, the applied id [Flurry startSession: @ "failed"];}
This completes sdk integration.
3. statistical items
3.1 execute the event in the execution method. The background event records the number of times the event was executed.
[Flurry logEvent:@"login_count"];
3.2 If you need to record the number of times of clicking different buttons on a page, this can be achieved
[Flurry logEvent:@"login_count" withParameters:@{@"target":@"first"}];
3.3 count the time of a user on a page
// Start [Flurry logEvent: @ "loginviewcontrol" timed: YES]; // end [Flurry endTimedEvent: @ "loginviewcontrol" withParameters: nil];
4. view results
View the event tab in the background to view the defined event
Click events are delayed for 6 hours.