29

I am looking for a component that would act as an event dispatcher for Android Analytics or for a whole custom Analytics solution.

I found some pretty neat code from the recently released Parse Android SDK.
I will use some part of it, if no other solution will appear.
But maybe there is something simpler.

Ideally, I would like to have something similar to what ARAnalytics is, plus some custom analytics/usage sender pointing to my service.

Are there any production-ready components for that?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Fishman
  • 1,737
  • 1
  • 25
  • 42
  • 1
    I have used Flurry (https://developer.yahoo.com/flurry/), and Google Analytics (https://developers.google.com/analytics/devguides/collection/android/v4/). Google Analytics is so far the best analytics engine I have used. You can try it – Shrikant Ballal Aug 31 '15 at 06:53
  • @Shrikant I am also using Google Analytics. But it is not the case of choosing analytics solution. I need my own for specific purposes. It will coexist with Google Analytics. But it is question about engine that will dispatch all the events to my server in some predefined way. – Fishman Aug 31 '15 at 06:57

2 Answers2

1

you can do like this

// Set the dispatch period in seconds.
GoogleAnalytics.getInstance(this).setLocalDispatchPeriod(30); 

and also Google has introduced Firebase analytics google now recommends developer to use firebase refer: https://firebase.google.com/docs/analytics/

SaravInfern
  • 3,338
  • 1
  • 20
  • 44
0

If I understand correctly, you need to send extra events and perform custom post-processing on those events.

You could use something like PIWIK to track your custom events locally. Then you'd need to write a glue between your server and PIWIK (or write the functionality you desire as a PIWIK module).

Alternatively, you could sent events to Mixpanel and export them periodically to your server (e.g. in a cronjob). Then, your server can do whatever post-processing it needs to do.

As a side note, when I was experimenting with Google Analytics and Mixpanel, I wrote an (opinionated) analytics wrapper with specific methods (e.g. sendError(...), sendTimeDelta(...)).

Laur Ivan
  • 4,117
  • 3
  • 38
  • 62