Reputation: 464
I want to add google analytics to my application, I followed up the instructions in this link https://developers.google.com/analytics/devguides/collection/ios/v3/#screen-tracking
I did all the instructions, my question is in the last step when I want to measure with a view controller, my view controller .h is :
@interface RootViewController : UIViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
in the instructions given in the link above, they said that we have to import #import "GAITrackedViewController.h"
and we have to update the header like :
@interface RootViewController : GAITrackedViewController
@end
my question is shall I update the UIViewController
from @interface RootViewController : UIViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
to
@interface RootViewController : GAITrackedViewController<SectionHeaderViewDelegate, UITableViewDelegate,UIAlertViewDelegate>
????
please help! Many thanks.
Upvotes: 1
Views: 605
Reputation: 114783
Yes.
You need to change the inheritance from plain UIViewController to the Google tracked view controller and you need to keep all of your protocol information as well (the things in <>)
Upvotes: 1