0

how can i use Google Analytics and ECSlidingViewController in my iOS App?

Google Analytics does not start when the first ViewController is an ECSlidingViewController...

4

1 回答 1

0

You probably need to make sure your RootViewController is Subclass of GAITrackedViewController

so:

ECSSlidingViewController : GAITrackedViewController

then you can get your tracker Via

id tracker = [[GAI sharedInstance] defaultTracker];

and do as you wish.

Maybe Something Like -

[tracker set:kGAIScreenName value:@"My Screen"];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];
[[GAI sharedInstance] dispatch];

**I just noticed this question if from April so you probably solved this ages ago!

Enjoy!

于 2013-12-16T15:35:27.023 回答