[英]Google Analytics for SDK iOS - implementing automatic screen
我想將Google Analytics(分析)添加到我的應用程序中,我按照此鏈接中的說明進行操作https://developers.google.com/analytics/devguides/collection/ios/v3/#screen-tracking
我做了所有說明,我的問題是我想使用視圖控制器進行測量的最后一步,我的視圖控制器.h是:
@interface RootViewController : UIViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
在上面的鏈接中給出的說明中,他們說我們必須導入#import "GAITrackedViewController.h"
,並且必須更新標頭,例如:
@interface RootViewController : GAITrackedViewController
@end
我的問題是我應該從@interface RootViewController : UIViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
更新UIViewController
@interface RootViewController : UIViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
到@interface RootViewController : GAITrackedViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
????
請幫忙! 非常感謝。
是。
您需要將繼承從普通的UIViewController更改為Google跟蹤的視圖控制器,並且還需要保留所有協議信息(<>中的內容)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.