离线应用的分析+统计? [英] Analytics+Statistics for offline Apps?

查看:19
本文介绍了离线应用的分析+统计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所暗示的,我需要做的是在各种 iOs/Android/Windows 应用程序中跟踪各种用户事件 - 例如点击、滑动、在页面上花费的时间等.

As the title suggests, what I need to do is track various user events - such as clicks, swipes, time spent on a page, etc. - in an various iOs/Android/Windows App.

这些应用程序基于响应式 HTML/CSS/JS,并具有简单的操作系统特定容器.图像、视频等所有数据都在应用程序中独立存在.

These Apps are based on responsive HTML/CSS/JS and have a simple OS specific container. All data such as images, videos, etc. are self-contained in the Apps.

这些应用的特点是,销售人员将使用 iPad/Surface/Android 平板电脑向可能的客户展示产品、电子表格、信息广告等的功能.客户端的一个关键要求是,一旦平板电脑连接到 Internet,这些统计数据就会被推送到中央统计服务(或某种数据库等)

Characteristic for these Apps is, that sales staff will use iPads/Surface/Android Tablets to demonstrate features of products, spreadsheets, infomercials, etc. to possible clients. One key requirement of the client is that as soon as the tablet connects to the Internet, these Statistics data is pushed to a central Stats Service (or some sort of DB, etc.)

我阅读了一些关于 Google 的新Universal Analytics 并在网站模式"中将其实现到应用程序的 HTML 中.据说它允许跟踪异地行为,但在我的测试中,它只在我在线时才有效.我很确定我不是第一个想做这样的事情.您可以推荐哪些实现?我希望启动并运行 Universal Offline-Stats,以支持执行一些基于自定义消息传递/cookie/flatfile 的解决方案.PS:我在网上找到的教程并没有太大帮助.要么太复杂,对离线部分没有深入覆盖,要么对这部分使用太模糊...

I was reading a bit about Googles' new Universal Analytics and implemented that in "Website Mode" to the HTML of the App. Supposedly it allows tracking offsite-behavior but in my test it only works as long as I am online. I'm pretty sure I am not the first wanting to do something like this. What implementations can you recommend? I'd hope to get the Universal Offline-Stats up and running in favor of doing some custom messaging/cookie/flatfile based solution. PS: the tutorials I have found on the interwebs weren't of too much help. either too complicated, not covering the offline part in depth or using being too blurry about this part...

也许我确实需要 iOs/Android SDKs 才能让那部分工作?如果是这样,我该如何处理 Windows Surface?

Maybe I do need the iOs/Android SDKs by design to get that part working? What do I do about Windows Surface if so?

推荐答案

Universal Analytics 中的一切都通过 测量协议,归根结底,它只是对 GA 后端的 HTTP 请求.所有 GA 跟踪库(analytics.js 用于 WebAndroidiOS SDK)只是测量协议之上的糖.

Everything in Universal Analytics works through the Measurement Protocol which, at the end of the day, is just HTTP requests to the GA backend. All of the GA tracking libraries out there (analytics.js for Web and the Android and iOS SDKs) are just sugar on top of the Measurement Protocol.

如果您想将数据发送到 GA,您将需要具有网络访问权限.如果没有网络访问,请求将不得不排队等待稍后发送.据我所知,没有一个跟踪库完全支持这一点(他们可能会在未来),所以不幸的是,如果这是一个硬性要求,你可能不得不自己实现离线支持.

If you want to send data to GA, you're going to need to have network access. And if there's no network access, the requests will have to be queued and sent later. As far as I know, none of the tracking libraries fully support this (they may in the future), so unfortunately you may have to implement offline support yourself if it's a hard requirement.

对于 Windows 手机,就像我说的,总是有测量协议,所以你应该能够从任何支持 HTTP 的设备(甚至是打印机和电视之类的设备)发送命中.

As for Windows phones, like I said, there's always the Measurement protocol, so you should be able to send hits from any device that supports HTTP (even things like printers and TVs).

注意:如果您要排队等待稍后发送,您需要记录它们发生的时间并设置 &qt(队列时间偏移)参数在Measurement Protocol请求中,否则命中时间将关闭.

Note: If you're queuing the hits to be sent later, you'll need to record when they occurred and set the &qt (queue time offset) parameter in the Measurement Protocol request, otherwise the hit times will be off.

这篇关于离线应用的分析+统计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆