Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7994013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:01:23+00:00 2026-06-04T14:01:23+00:00

In trying to implement the Google Analytics SDK for iOS, I’ve run into two

  • 0

In trying to implement the Google Analytics SDK for iOS, I’ve run into two brick walls.

The first one is that after executing this code in application:DidFinishLaunchingWithOptions:

[[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-XXXXXXX-YY"
                                       dispatchPeriod:10
                                             delegate:self];
[[GANTracker sharedTracker] setDebug:YES];

.. and then trying to track anything or call dispatch, no debug messages are logged whatsoever. I’ve added NSLog lines before and after tracking calls and the code is definitely being reached.

Secondly, when I do try and do a manual dispatch, it returns NO. All the other issues I’ve seen online are where dispatch returns YES but it’s somehow not going through properly. What does one do if dispatch actually returns NO?

I’ve tried adding an NSError * reference to the track methods and those actually succeed (no error, function returns YES). But the events are definitely not being periodically dispatched, since we’re seeing nothing on the GA account more than 24 hours later.

EDIT: I’ve also got NSLog calls in both of the delegate methods (hitDispatched: and trackerDispatchDidComplete:eventsDispatched:eventsFailedDispatch:), and neither of those are being called either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:01:25+00:00Added an answer on June 4, 2026 at 2:01 pm

    cough

    I’d misspelled the #define to start the tracker object in my app delegate. Other files were spelled correctly, hence the logging statements showing up, but when I tried to log just before the tracker was started it didn’t show.

    Oops. Well, at least there’s a decent troubleshooting post for Google Analytics on SO now!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement google analytics code into our system that is mainly ajax
I am trying to implement google map api into one of my web page
I am trying to use django-social-auth to implement google openid login into my app,
I'm trying to implement google places functionality in BlackBerry application. The problem is that
I'm trying to implement Google OpenID into my site, but the server has several
I'm trying to implement the wmd-editor from the google code repository (like the one
I am trying to implement something like google instant seach that displays possible searches
I am trying to use one-time passwords that can be generated using Google Authenticator
I'm trying to implement a login system that only supports login through a Google
I am trying to implement SlideShow of google in my site www.tapasya.co.in . You

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.