EasyTracker Google Analytics integration in my iOS app

Easytracker describes the following:

   Use TrackedUIViewController to automatically emit pageviews when the view
// associated with the controller appears. 

And then, if you look at an example, they will do the following:

#import "EasyTracker.h"

@interface FirstViewController : TrackedUIViewController

However, in my case, the interface looks like this:

@interface MyTableViewController : UITableViewController<FBRequestDelegate,
FBDialogDelegate,UIGestureRecognizerDelegate>{
    User *user;
    Fam *fam;
}

What should I do to add tracking?

+5
source share
2 answers

You can follow the manual screens for this google doc .

Manual screen tracking

To manually track the appearance of the screen, call trackView: as in the following example:

id<GAITracker> googleTracker = [[GAI sharedInstance] trackerWithTrackingId:@"YOUR-IUD"];
[googleTracker trackView:@"home screen"];
+10
source

, UITableViewController, , , , . , . , . Interface Builder MyTableViewController.

:

@interface MyTableViewController : TrackedUIViewController <UITableViewDataSource, UITableViewDelegate>

, , .

@property (strong) UITableView *tableView;
+1

All Articles