gpt4 book ai didi

ios - 在Google Analytics API跟踪器代码中找不到错误

转载 作者:行者123 更新时间:2023-12-03 16:03:19 25 4
gpt4 key购买 nike

我添加了所有框架,并实现了其他GA API代码并返回了分析数据。不确定错误是什么?我收到“选择器sendEventWithCategory的未知实例:

(IBAction)didTouchOnInviteButton
{
ContactListViewController *contactsViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ContactListViewControllerId"];
contactsViewController.mode = modeInviteToEvent;
contactsViewController.event = self.event;
[self.navigationController pushViewController:contactsViewController animated:YES];

id <GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker sendEventWithCategory:@"Contacts" withAction:@"Invite Button Pressed" withValue:1];
}

最佳答案

尝试这个:

[[GAI sharedInstance].defaultTracker sendEventWithCategory:@"Contacts" withAction:@"Invite Button Pressed" withLabel:nil withValue:@1];

关于ios - 在Google Analytics API跟踪器代码中找不到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18280439/

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