Google Analytics API 和 .Net
Google 宣布推出Analytics 数据导出 API 几天前,从而使获取网站的分析数据变得更加容易。 该 API 首次与 Java 和 JavaScript 客户端一起推出,但没有直接的 .Net 支持(除了直接支持 XML)。 不过,该 API 似乎与其他 Google 数据 API 类似,并且有一个 .Net 客户端那些。 有人尝试过使用该库中的组件来获取分析数据吗?
我正在构建一个 ASP.Net MVC 站点,并认为我应该使用 Google Analytics 来生成“浏览次数最多”列表和类似的内容(因为 Google 可能更擅长清除虚假请求、机器人等) 。 如果您对此想法有任何想法,我也非常乐意听到它们。
Google announced the Analytics Data Export API some days ago, thereby making it much easier to get analytics data for a site. The API debuted with Java and JavaScript clients, but no direct .Net support (other than going straight for the XML). It seems the API is similar to the other Google Data APIs though, and there's a .Net client for those. Has anyone tried using the components in that library to get at the analytics data?
I'm in the process of building an ASP.Net MVC site and thought I'd use Google Analytics to generate "Most viewed" lists and stuff like that (since Google is probably better at weeding out spurious requests, robots, etc.). If you have any thoughts on that idea, I'd much appreciate hearing them too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
检查 Google .NET 库的主干,他们添加了 Analytics支持。
另请查看他们的群组帖子:
http:// groups.google.com/group/gdata-dotnet-client-library/browse_thread/thread/2d2eec9103b731c6
和
http://groups.google.com/group/gdata-dotnet-client-library/browse_thread/thread/70c6638734823b8d
Check the trunk of Google's .NET library, they have added Analytics support.
Also check their groups post on this:
http://groups.google.com/group/gdata-dotnet-client-library/browse_thread/thread/2d2eec9103b731c6
and
http://groups.google.com/group/gdata-dotnet-client-library/browse_thread/thread/70c6638734823b8d
在这里查看我的帖子位置:
http://www.akamarketing。 com/blog/103-introducing-google-analytics-api-with-aspnet-c.html
它没有使用您提到的内置库,但运行得很好。 整个 API 是 XML/HTTP,所以使用起来非常方便。 您基本上向 Google 请求一个网页,然后检查响应是否有您需要的内容。
Check out my post location here:
http://www.akamarketing.com/blog/103-introducing-google-analytics-api-with-aspnet-c.html
It's not using the built in library you mention but it's working pretty well. The whole API is XML/HTTP so it's pretty handy to use. You basically ask Google for a webpage and examine the response for what you need.
}
}
Google 发布了一种新的 API,列在 Google Api Explorer 中,您可以看到该条目对于 Google Analytics(分析)。 还有一个 .Net 客户端,它为所有这些蜜蜂。 这是谷歌,所以它仍处于测试阶段,但我正在开发它,没有任何问题。
Google has release a new breed of Apis which are listed at Google Api Explorer, you can see the entry for Google Analytics. And there is a .Net client which provides .dlls for all of these Apis. This is Google so it is still in Beta but I'm developing off it with no issues.