Hello,
I've got a couple of questions regarding more advanced use of the
Analytics Tracking for Mobile Apps, Android version.
1) Must a tracker.start() be performed for each Activity you want to
use tracker.trackPageView() or tracker.trackEvent()? And is it allowed
to use the applicationContext as context? If so, what effect does
using the ActivityContext vs ApplicationContext have for the analytics
reports?
2) Should tracker.start() be placed in onCreate() just like the
example? But what happens if that Activity is stopped (i.e onStop()
invoked by Android)? No problem?
3) Can I call the tracker.trackPageView() and trackEvent() in any
thread? E.g in a onClickHandler() which has a different context than
the Activity it's in. I guess it shouldn't matter since you don't pass
any context to those methods?
4) If you set the dispatch to 30secs, should you then *always* see an
entry in LogCat with access to the analytics servers? E.g "InetAddress
www.google-analytics.com: 66.102.13.138". Or is that only happening
after a certain amount of tracking data has been collected on the
phone? If the latter, then it's quite hard to see if all the
tracker.trackXYZ() calls you make are actually sent. What would be
then the best way to see if all tracking works?
5) Can debugging be turned on? For example to see everything is sent
to the servers?
6) Where's the API doc? It's not in the .zip nor can I find it here:
http://code.google.com/intl/nl-NL/apis/analytics/docs/tracking/mobileAppsTracking.html
Kind regards,
Marco