Friends of the league statistics, monitoring the number of events.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.