用户工具

站点工具


差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
en:razor:ios-developer-guide [2015/03/18 15:59]
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"​];​
行 141: 行 146:
  
 You can bind user account to your app when this metheod was called. You can bind user account to your app when this metheod was called.
-===  + 
- === +=== 2.2.11 Bind Tags === 
-2.2.11 Bind Tags+
 <​code>​[UMSAgetnt postTag:​@"​tag"​];</​code>​ <​code>​[UMSAgetnt postTag:​@"​tag"​];</​code>​
  
 User can bind tag information,​ and send it to server. Later the tags will be used to group users. User can bind tag information,​ and send it to server. Later the tags will be used to group users.
en/razor/ios-developer-guide.1426665569.txt.gz · 最后更改: 2017/07/14 11:12 (外部编辑)