用于自定义使用的分析调度程序和配置管理

时间:2022-02-16 15:22:49

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

我正在寻找一个可以充当Android Analytics事件调度程序或整个自定义Analytics解决方案的组件。

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.

我从最近发布的Parse Android SDK中找到了一些相当简洁的代码。如果没有其他解决方案出现,我将使用它的一部分。但也许有一些更简单的东西。

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

理想情况下,我希望有类似于ARAnalytics的东西,以及一些指向我的服务的自定义分析/使用发送者。

Are there any production-ready components for that?

是否有适合生产的组件?

2 个解决方案

#1


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/

谷歌也推出了Firebase分析谷歌现在建议开发者使用firebase参考:https://firebase.google.com/docs/analytics/

#2


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).

您可以使用PIWIK之类的东西在本地跟踪自定义事件。然后,您需要在服务器和PIWIK之间编写一个粘合剂(或者将您想要的功能写为PIWIK模块)。

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.

或者,您可以将事件发送到Mixpanel并定期将它们导出到您的服务器(例如,在cronjob中)。然后,您的服务器可以执行它需要执行的任何后处理。

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(...)).

作为旁注,当我尝试使用Google Analytics和Mixpanel时,我使用特定方法(例如sendError(...),sendTimeDelta(...))编写了一个(固定的)分析包装器。

#1


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/

谷歌也推出了Firebase分析谷歌现在建议开发者使用firebase参考:https://firebase.google.com/docs/analytics/

#2


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).

您可以使用PIWIK之类的东西在本地跟踪自定义事件。然后,您需要在服务器和PIWIK之间编写一个粘合剂(或者将您想要的功能写为PIWIK模块)。

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.

或者,您可以将事件发送到Mixpanel并定期将它们导出到您的服务器(例如,在cronjob中)。然后,您的服务器可以执行它需要执行的任何后处理。

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(...)).

作为旁注,当我尝试使用Google Analytics和Mixpanel时,我使用特定方法(例如sendError(...),sendTimeDelta(...))编写了一个(固定的)分析包装器。