加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

将Google Analytics跟踪集成到IOS应用程序中

发布时间:2020-12-14 18:13:58 所属栏目:百科 来源:网络整理
导读:我想将Google Analytics跟踪功能集成到我的 IOS APP中. 我已整合Google Analytics Library并将其添加到我的应用程序中. 比照https://developers.google.com/analytics/devguides/collection/ios/v2/ 进入我的代码来跟踪我的查看联系人 - (void)viewDidLoad{
我想将Google Analytics跟踪功能集成到我的 IOS APP中.

我已整合Google Analytics Library并将其添加到我的应用程序中.

比照https://developers.google.com/analytics/devguides/collection/ios/v2/

进入我的代码来跟踪我的查看联系人

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.trackPageView = @"Contact Screen";
    //
}

有一个错误“在’ContactViewController’类型的对象上找不到”属性’TrackPageView’

解决方法

您正试图在viewDidLoad中设置错误的属性(trackPageView):您应该在哪里设置trackedViewName属性.代码应如下:

self.trackedViewName = @"Contact Screen";

同样在标题(.h)文件中,确保您的@interface继承自GAITrackedViewController类,如下所示:

@interface YourContactScreenController : GAITrackedViewController

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读