Google Analytics on iOS App

Discussion in 'iOS Programming' started by Macintosh1984, Apr 20, 2016.

  1. Macintosh1984 macrumors regular

    Joined:
    Dec 15, 2012
    #1
  2. AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #2
    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.
     
  3. Macintosh1984 thread starter macrumors regular

    Joined:
    Dec 15, 2012
    #3
    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?
     
  4. AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #4
    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.
     

Share This Page