amitiitr11 / analytics-api-samples

Automatically exported from code.google.com/p/analytics-api-samples
0 stars 0 forks source link

EasyTracker for Android doesn't allow for manual (non-scheduled) dispatch() #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set ga_dispatchPeriod to 0

What is the expected output? What do you see instead?

No automatich dispatches - but ga_dispatchPeriod=0 seems to mean "dispatch 
immediately" (because that's the behaviour I get

What version of the product are you using? On what operating system?
EasyTracker 1.0, google analytics api 1.4.2

Please provide any additional information below.

To disable the auto-dispatch, EasyTracker should call 
GoogleAnalyticsTracker.startNewSession(String,Context), instead of 
.startNewSession(String,int,Context)

I've patched EasyTracker (and 
GoogleAnalyticsTrackerDelegate/GoogleAnalyticsTrackerDelegateImpl) to call this 
mth when ga_dispatchPeriod=-1 (so 'immediate dispatch' also remains possible 
with  ga_dispatchPeriod=0)

Original issue reported on code.google.com by ed...@mobidapt.com on 21 Mar 2012 at 4:49