views:

43

answers:

1

An answer of the question Best grails implementation for tracking number of views (or unique visitors) for a web page ? was to use Google Analytics API for tracking and displaying the number of page views for some particular page on my website.

I liked the idea and had a look of the Google Analytics API but, at first view, it seems to me quite complicated and my needs are very basics (i.e. displaying number of people who have views some particular pages of my website).

So I'd like to know if there is any tutorial out there or if you can give me some guidance that shows how to retrieve (and display) number of unique views for some of my web pages using Google Analytics API (in Java or JavaScript) or even Feeds.

Thank you very much.

A: 

This page has an example of getting started and data using a DataQuery:

http://code.google.com/apis/analytics/docs/gdata/2.0/gdataJava.html#retrievingData

Then, this page:

http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.html

has a good tool to help building the query you need. My guess would be to use the pagePath dimension and the pageViews metric. That would give you the page views per url for a given date range.

cheers

Lee

leebutts
Thank you veyr much. It is indeed a veyr good and quick start
fabien7474