是否有类似 Google Analytics 的解决方案来跟踪对 Web 服务的 REST 调用? [英] Is there a Google Analytics-like solution to track REST calls to a web service?
问题描述
只是想知道是否有任何开箱即用的解决方案,我对分析 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.
这篇关于是否有类似 Google Analytics 的解决方案来跟踪对 Web 服务的 REST 调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!