Realtime android Google analytics without EasyTracker -


i'm trying figure out how track page views in real time without using easytracker singleton.

i have following code:

/**  * how create tracker instance...  */ private void createtracker() {     if (tracker != null)         return;      tracker = googleanalytics.gettracker(googleanalyticssiteid);     tracker.setanonymizeip(trackinglevel.isanonymous());     tracker.setappinstallerid(configuration.getinstallationuuid());     tracker.setsamplerate(dispatchintervalinseconds);     trackupgradedapp(); }  ...  void someothermethod(activity activity){     tracker.sendview((string) activity.gettitle()); // easytracker.getinstance().activitystart(cyborgscreen.getactivity()); } 

while uncomment easytracker line, can track pages visited in realtime, after adding analytics.xml project (obviously).

once commenting line, not receive realtime information... if following code here, should have done trick.

am missing obvious, or there bug?

thanks, adam.

well, after tones of playing around deleting, coping, changing things, i've found this:

gaservicemanager.getinstance().setdispatchperiod(dispatchintervalinseconds); 

was missing, , why not see realtime screen event without using easytracker!

hope helps someone...


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -