poo*_*205 6 google-analytics ios
我一直在尝试使用谷歌分析来跟踪表中哪一行被选中
NSString *label=[NSString stringWithFormat:@"Section#%i",indexPath.section];
[[GAI sharedInstance].defaultTracker trackEventWithCategory:@"HOME"
withAction:@"Select Row"
withLabel:label
withValue:[NSNumber numberWithInt:indexPath.row]];
Run Code Online (Sandbox Code Playgroud)
但我总是得到 error "No known instance method for selector trackEventWithCategory:withAction:withLabel:with Value:"
任何人都可以指导我:我想跟踪选择哪一行表,以便可以使用谷歌分析创建一个事件.
我终于得到了解决方案
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"BUSINESS DETAILS "
action:@"Select Row" // Event action (required)
label:@"Selected" // Event label
value:[NSNumber numberWithInt:indexPath.row]] build]];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
163 次 |
| 最近记录: |