這里會顯示出您選擇的修訂版和當前版本之間的差別。
兩側同時換到之前的修訂記錄 前一修訂版 后一修訂版 | 前一修訂版 | ||
en:razor:ios-developer-guide [2015/03/18 16:00] cobub [2.2 SDK Usage Step] |
en:razor:ios-developer-guide [2017/07/14 11:18] (當前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ~~Title:Cobub Razor iOS Developer Guide - Mobile Apps Marketing Platform of Open Source - Mobile Analytics & Mobile Push Notification Solutions - Cobub Mobile Developer Center~~ | ||
+ | {{description>Cobub Razor is an Open Source Mobile Analytics. The goal of this document is to explain usage rules of Cobub Razor iOS SDK for facilitating developers.}} | ||
+ | {{keywords>Cobub Razor,open source mobile analytics,mobile analytics,mobile app analytics, ios, developer guide}} | ||
+ | |||
====== Cobub Razor iOS Developer Guide ====== | ====== Cobub Razor iOS Developer Guide ====== | ||
===== 1 Overview ===== | ===== 1 Overview ===== | ||
行 28: | 行 32: | ||
Select Add->Existing files in project directory and select the two unzipped files above, or drag two files to project directory directly. Select Copy Items into destination group’s folder(if needed). | Select Add->Existing files in project directory and select the two unzipped files above, or drag two files to project directory directly. Select Copy Items into destination group’s folder(if needed). | ||
+ | |||
{{:en:razor:20150318-075044.png}} | {{:en:razor:20150318-075044.png}} | ||
行 80: | 行 85: | ||
Invoke this API will send event info to the server and generate the event data statistics report on the server which analyzes sending times and changing trends corresponding to event_id, such as AD clicks, message numbers and so on. | Invoke this API will send event info to the server and generate the event data statistics report on the server which analyzes sending times and changing trends corresponding to event_id, such as AD clicks, message numbers and so on. | ||
- | For example, to monitor AD clicks of App, the Event ID of which is “ ad_click“ defined on the Web Server, you need call postEvent:@“ad_click“ in App , which will notify server that an AD click event has occurred. | + | For example, to monitor AD clicks of App, the Event ID of which is “ ad_click“ defined on the Web Server, you need call //postEvent:@“ad_click“// in App , which will notify server that an AD click event has occurred. |
== 2.2.6.2 Multi Tag Event == | == 2.2.6.2 Multi Tag Event == | ||
+ | <code>+(void)postEvent:(NSString *)event_id label:(NSString *)label;</code> | ||
- | +(void)postEvent:(NSString *)event_id label:(NSString *)label;? | + | This API is an overloaded method of //postEvent: (NSString *)// event_id which will monitor the proportion of specific label in event. The label is the devision name and event_id could not have spaces. |
- | This API is an overloaded method of postEvent: (NSString *) event_id which will monitor the proportion of specific label in event. The label is the devision name and event_id could not have spaces. | + | |
For example, a province has a corresponding event_id and one city of which has a corresponding label in App. Thus, we can observe the proportion of event corresponding to the city in generated data statistics reports. | For example, a province has a corresponding event_id and one city of which has a corresponding label in App. Thus, we can observe the proportion of event corresponding to the city in generated data statistics reports. | ||
行 122: | 行 127: | ||
<code>+(void)startTracPage:(NSString*)page_name;</code> | <code>+(void)startTracPage:(NSString*)page_name;</code> | ||
- | Call this API in viewWillAppear() method in App(UIViewController), this method records the time of user enters this page.? | + | Call this API in //viewWillAppear()// method in App(UIViewController), this method records the time of user enters this page.? |
- | <code>-(void) viewWillAppear(BOOL)animated | + | <code>-(void) //viewWillAppear(BOOL)animated// |
{ | { | ||
[UMSAgent startTracPage:@"Main"]; | [UMSAgent startTracPage:@"Main"]; |