Google Analytics +统计信息用于离线应用 [英] Analytics+Statistics for offline Apps?

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

问题描述

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



这些应用程序基于响应式HTML / CSS / JS,并具有简单的操作系统特定容器。所有数据,如图片,视频等都是自包含在应用程序中。



这些应用程序的特点是,销售人员将使用iPad / Surface / Android平板电脑向可能的客户展示产品,电子表格,商业信息等的功能。客户端的一个关键要求是,只要平板电脑连接到互联网,这些统计数据就会被推送到统计服务中心(或某种数据库等)。

我对Google的新 Universal Analytics ,并在网站模式中实现了该应用程序的HTML。据说它允许跟踪非现场行为,但在我的测试中,只有当我在线时才能工作。
我很确定我不是第一个想做这样的事情。你可以推荐哪些实现?我希望能够启用并运行Universal Offline-Stats,以支持基于定制消息/ cookie /平面文件的解决方案。
PS:我在互联网上找到的教程没有太多帮助。或者太复杂,没有深入讨论离线部分或者对这部分内容过于模糊......



也许我需要通过设计获得iOs / Android SDK才能获得那部分工作?如果是这样,我该如何处理Windows Surface?

解决方案

Universal Analytics中的所有功能都可以通过测量协议,它在一天结束时只是对GA后端的HTTP请求。所有Google Analytics跟踪库( analytics.js )都适用于Web和 Android iOS 软件开发工具包)只是测量协议之上的糖。 想要将数据发送到GA,您将需要具有网络访问权限。如果没有网络访问,请求将不得不排队并稍后发送。据我所知,没有一个跟踪库完全支持这一点(它们可能在未来),所以不幸的是,如果这是一个困难的要求,你可能必须自己实现脱机支持。



对于Windows手机,就像我说的那样,总是有Measurement协议,所以你应该能够从任何支持HTTP的设备发送匹配(甚至像打印机和电视)。

注意:如果您将匹配稍后发送,则需要记录发生的时间并设置 & qt (队列时间偏移量)参数在测量协议请求中,否则命中时间将关闭。


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.

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.

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

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

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

解决方案

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.

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.

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

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.

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

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