Skip navigation
Kobydo2
Currently Being Moderated

Google analytics for mobile show no data

Sep 23, 2013 12:34 AM

Tags: #flex #mobile #flex_mobile #google_analytics

Hi all,

I added Google Analytics for my mobile application, but it's been 12 days and I see NO data there.

I checked the code and it seems fine, no exceptions or anything like that.

Here is the code I used:

 

import com.google.analytics.GATracker;

import com.google.analytics.AnalyticsTracker;

 

tracker = new GATracker( this, "(My Google Tracking Code)", "AS3", false );

tracker.trackPageview("myapp/postinit");

tracker.trackEvent("myapp","Start","User started playing");

 

If it helps, I tried Flurry - but same results - no data is being reported....

 

Any ideas ?

 

Thanks.

 
Replies
  • Currently Being Moderated
    Sep 23, 2013 4:34 AM   in reply to Kobydo2

    Hi Kobydo2,

     

    I'm using GATracker and data is being reported, so I can confirm that it works. (Though I haven't tested to confirm that every trackEvent() gets through to GA, so I can't speak to its reliability.)

     

    If I recall correctly, while trackEvent() works, trackPageView() didn't seem to do anything.

     

    Perhaps if you tried commenting out the trackPageView() line the code would start working?

     

    Other than that, your code seems correct.

     

    I don't know if this makes any difference but I keep a single instance of GATracker in a property - i.e. only instantiate it once per session.

     

    You can view my code here:

     

    http://code.google.com/p/languagementor/source/browse/trunk/brightwork s/src_bright/com/brightworks/util/AppUseAnalytics.as

     

    Douglas

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 24, 2013 5:46 AM   in reply to Kobydo2

    Hi Koby,

     

    I'm sorry, but I don't have much to suggest. Google Analytics - at least from my point of view - is a big opaque box.

     

    One thing I've noticed is that there tends to be a delay before results show up. A day? Longer?

     

    Oh. Just noticed something. It appears that perhaps GATracker is working for me on Android, but not on iOS. I just checked my stats and I see no visits in the last five days - during which time period I've definitely been using my app - but I've been using it on the iPhone.

     

     

    Can anyone confirm that GATracker works for them on iOS?

     

    Douglas

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points