是否有类似谷歌分析的解决方案来跟踪对Web服务的REST调用? [英] Is there a Google Analytics-like solution to track REST calls to a web service?

查看:102
本文介绍了是否有类似谷歌分析的解决方案来跟踪对Web服务的REST调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有任何现成的解决方案,我不太熟悉分析api,也许我可以写一些简单的js,在去我的服务之前更新分析 - 否则我会有坚持在数据库中良好的'商店记录'。



任何帮助表示感谢!

解决方案

这里似乎有几个解决方案,尽管它们似乎涉及到更改API体系结构。



您可以使用Google Analytics的其中一个服务器端跟踪库



我看到您正在使用AppEngine;我也使用AppEngine运行API,最近一直在使用 App Engine的Google Analytics库。这不是一个完美的解决方案,但是有相当数量的高质量数据。

请注意,Google Analytics数据建模实际上与API的数据建模不同;取决于你的API,访问的概念有些没有意义。


Just wondering if there's any out of the box solution for this, I am not too familiar with the analytics api maybe I can write some simple js that updates analytics before going to my service etc. -- otherwise I am going to have to stick to the good old 'store records in the database'.

Any help appreciated!

解决方案

There seem to be a few solutions out there, though they mostly seem to involve changing your API architecture.

You could potentially use one of the Google Analytics server-side tracking libraries.

I see you're using AppEngine; I also run an API using AppEngine, and recently have been playing with using a Google Analytics Library for App Engine. It's not a perfect solution, but there's a decent amount of quality data.

Be warned that Google Analytics data modeling really isn't that analagous to that of an API; depending on your API, the notion of a "visit" is somewhat meaningless.

这篇关于是否有类似谷歌分析的解决方案来跟踪对Web服务的REST调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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