1, go to Friends League, add their own project app, and get Appkey.
2, download, install umsocial_sdk_4.0
3. In the. pch
#define Mobclick_appkey @ "54488ED8FD98C552F4001D27" // Friends League statistics APPKEY
In APPDELEGATE.M, open the League of Friends
#import "MobClick.h"
In-(BOOL) application: (uiapplication *) application didfinishlaunchingwithoptions: (nsdictionary *) In Launchoptions
[Mobclick Startwithappkey:appkey];
[Mobclick setappversion:xcodeappversion];
4. In the location where the click event occurred, add
-(void) ButtonClick
{
[Mobclick Event:statistics_button_click];
}
Where Statistics_button_click is the ID of the click event and requires its own macro definition, such as
#define Statistics_button_click @ "Statistics_button_click", this ID needs to add click event ID, function using--custom event ——— manually added--count event in Friends League website.
View the number of event firings, which can be viewed by using the function-custom event.
Friends of the league statistics, monitoring the number of events.