gpt4 book ai didi

ios - 通过谷歌分析根据表格的选定行跟踪事件

转载 作者:可可西里 更新时间:2023-11-01 03:56:59 24 4
gpt4 key购买 nike

我一直在尝试使用此代码来跟踪使用谷歌分析选择了表格的哪一行

NSString *label=[NSString stringWithFormat:@"Section#%i",indexPath.section];
[[GAI sharedInstance].defaultTracker trackEventWithCategory:@"HOME"
withAction:@"Select Row"
withLabel:label
withValue:[NSNumber numberWithInt:indexPath.row]];

但我总是收到错误“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]];

关于ios - 通过谷歌分析根据表格的选定行跟踪事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23360301/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com