How to implement the GAITrackedViewController for Google Analytics for iOS together with the UITableViewController NSXMLParserDelegate?

1

How to insert the GAITrackedViewController from Google Analytics into the code below without removing the UITableViewController from this line?

@interface STNavigationViewController:UITableViewController <NSXMLParserDelegate>

Does this possibility exist? In my case I need to implement the two resources.

Complete code:

#import <UIKit/UIKit.h>
#import "GAITrackedViewController.h"

@interface STNavigationViewController:UITableViewController <NSXMLParserDelegate> {

}


@property (strong, nonatomic) IBOutlet UITableView *tableView;



-(IBAction)back:(id)sender;


@end
    
asked by anonymous 30.04.2014 / 15:42

1 answer

1

GAITrackerViewController , is no more than a "convenience" for the developer not to waste time doing Screen View type tracking.

I really think it's bullshit to extend GAITrackerViewController , since it's very simple to track a view when it's displayed.

My suggestion that you do not get your views controllers in the Google tracker running out of this kind of problem is to create a GAI abstraction that can be simple and reusable for any project.

I've created a gist that might be useful for you . I did not test it because I'm not in my development machine, I only took a snippet of a code developed previously and adapted to its need. Of course, Flurry has it, but if you do not need it, just remove it.

I hope I have helped.

    
17.05.2014 / 04:58