Google analytics API C#

Thijs picture Thijs · Oct 18, 2011 · Viewed 7.5k times · Source

I'm currently implementing a pageview counter on some webpages using the Google Analytics API. I'm having a hard time figuring out how to use the Google API. Could someone post some examples how to use the API?

I searched the mighty internet but I didn't found any tutorials who guided me through the API.

Any help would be greatly appreciated!

Thijs

Answer

David Waters picture David Waters · Nov 23, 2011

I would not use the GData Apis suggested by Haythem, as Google has release a new breed of Apis (Google Api Explorer), you can see the entry for Google Analytics.

I assume as they have released a new way of doing things they will at some stage turn off the GData Apis so if you are building a new application I would build against the new API not the old GData Api.

There is a good introduction to using the Google Analytics at http://code.google.com/apis/analytics/docs/mgmt/v3/mgmtGettingStarted.html there is also a page with links to Examples and Libraries for using the Analytics Api.