简体   繁体   English

如何在Cordova应用程序中跟踪事件

[英]How to track events in the Cordova app

I'm creating an app using Cordova and I would love to have some analytics for my app so I can tell where users are clicking the most or what is a workflow for clicks ie routes/paths (aka click-map or heat-map) ie 我正在使用Cordova创建一个应用程序,并且希望对我的应用程序进行一些分析,这样我才能知道用户点击最多的地方或点击的工作流程是什么,即路线/路径(又名点击图或热图)即

Page 1 -> Form 1 -> Option 2 - 80% of users

Page 1 -> Form 2 -> Option 1 - 5% of users

Page 2 -> Form 1 -> Option 3 - 15% of users or something like that.

Here are a few questions: 这里有几个问题:

  • So I'm looking for best practices or what would you suggest to use so I can get this or similar analytics? 因此,我正在寻找最佳实践,或者您建议使用什么以获取这种或类似的分析?
  • Is Google Analytics a right choice for that? Google Analytics(分析)是否是正确的选择? Events or a Tag manager? 活动还是标签管理器? Is there any other options? 还有其他选择吗?
  • Is there any plugin or library for that? 是否有任何插件或库?

Thank you! 谢谢!

You could write your own analytics reporting in Javascript, independent of the Cordova component. 您可以使用Javascript编写自己的分析报告,而与Cordova组件无关。 Or, you could use a Cordova plugin. 或者,您可以使用Cordova插件。 There are several: http://cordova.apache.org/plugins/?q=analytics 有几个: http : //cordova.apache.org/plugins/?q=analytics

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM