On Jan 21, 4:21 pm, Alexander Lucas <[email protected]> wrote: > Some gotchas: > > 1- Data isn't guaranteed to show up in Analytics until 24 hours after the > data is submitted to analytics. It usually shows up earlier, but you should > give it 24 hours (Notice I didn't say a day- Testing at 11:59 PM and > checking for data at 12:01 AM won't get you anywhere :P ).
I understand this part. > > 2- There are both automatic and manual dispatch modes- Just because > trackPageView is called on your device doesn't mean anything is sent to the > Analytics servers, until a dispatch occurrs. Combined with gotcha #1, this > can make the delay between an event occuring and viewing the data pretty > volatile unless you're firing dispatches at a reasonable rate. The timed > dispatch mode takes SECONDS as a parameter, not milliseconds (I'm just > firing off mistakes I made when learning the library, feel free to roll your > eyes here)- > I'm manually dispatching the tracker... iow I call dispatch in my code. > 3- Make sure you have the necessary permissions in your AndroidManifest- > android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE > I've done this as well. > 4- What changed between the app version that was sending data and not > sending data? Just a different emulator being tested on? Was there a > different version of the software? > I'm presently trying an older 2.2 emulator hoping it will work. I'll post back in a day give or take. > Is Logcat producing any crashes? > I haven't used Logcat in the past I used the debugger, but I've noticed no crashes. I will look more closely at both. I did include the 'DEBUG' line (that showed up in the debugger window) in a previous post that was generated by the tracker. > -Alex > On Fri, Jan 21, 2011 at 11:53 AM, David Liebman > <[email protected]>wrote: > > > HI, > > > so I started up the emulator and the debugger. I viewed the page > > that's supposed to produce a hit on Google Analytics. Here's the info > > from the debugger. > > > 01-21 14:34:51.257: DEBUG/NetworkRequestUtil/ > > ConstructPageviewRequestPath(354): /__utm.gif? > > utmwv=4.5ma&utmn=1958648861&utmcs=UTF-8&utmsr=320x480&utmul=en-US&utmp= > > %2FSplashScreen&utmac=UA-19479622-2&utmcc=__utma > > %3D999.490166702.1294513166.1295538176.1295638491.177 > > > '/SplashScreen' is the page name (if you can call it a page). Can > > anybody see what's going on here? The code that produces this is > > pretty much as follows: > > > GoogleAnalyticsTracker tracker; > > > tracker = GoogleAnalyticsTracker.getInstance(); > > tracker.start(UA_NUMBER, this); > > tracker.trackPageView("/SplashScreen"); > > tracker.dispatch(); > > > There's actually a little more code than that, of course, but I wanted > > to just get across the idea that the instance of the Google Analytics > > Tracker uses the 'trackPageView' method. For a little more background > > I'll include the declaration for UA_NUMBER: > > > public static final String UA_NUMBER = new String("UA-19479622-2"); > > > I do believe UA_NUMBER to be the correct string, and like I said, I > > got hits from this arrangement when I first updated the code to my app > > on the market. I cannot figure why it doesn't work any more. > > > On Jan 21, 2:03 pm, Brill Pappin <[email protected]> wrote: > > > laugh ;) > > > > Whats the licence? > > > If its apache like most things, how about setting up a google project for > > > it? > > > > I would really like to be able to step through their code! > > > and no doubt if others can see it, we can improve it faster than they can > > :) > > > > - Brill Pappin > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

