Reputation: 1647
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?
Upvotes: 29
Views: 355
Reputation: 3388
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/
Upvotes: 1
Reputation: 4177
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(...)
).
Upvotes: 0