views:

4536

answers:

2

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.

+3  A: 

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.

+8  A: 

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

kitsune