Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

iOS Google Analytics on iOS App

AxoNeuron

macrumors 65816
Apr 22, 2012
1,240
847
The Left Coast
They would be talking about AppDelegate.m

Though you might have to make changes in AppDelegate.h if you will be subscribing to a delegate of some kind. Otherwise you should be fine to just import the class in the .m implementation file and add the code there.

Generally initialization code like that is placed in the didFinishLaunchingWithOptions method.
 

Macintosh1984

macrumors regular
Original poster
Dec 15, 2012
226
7
Thanks but I have problems to implement Google Analytics in my app, my fault because I'm new to iOS programming and also because Google tutorial does not seem clear, code gives me error. I'm programming in Objective-C with Xcode 7. you can recommend some good tutorials?
 

AxoNeuron

macrumors 65816
Apr 22, 2012
1,240
847
The Left Coast
I hate to say it, but if you're not sure whether you should be putting code in the header (.h) or the implementation file (.m) you definitely want a more basic course than just a tutorial. I would recommend bitfountain.io for their ios courses, or lynda.com as well, both are pretty good. I'd advise taking a beginner iOS course if you can, before trying to integrate a framework.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.