Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website and for each post that I write (that is a particular page) in my blog, I would like to show the number of views that Google Analytics tracks.

How to do this using Analytics API?

Or is it something related to Webmaster tools?


Please note...

I have a Google Analytics account correctly working and processing data.

share|improve this question

To get the visitor count per page using the Google Analytics API you would use the following API call.. Where ga?id= is the profile ID or

"The namespaced profile ID of the profile from which to request data. Use the profile selector above to find this value."


This returns the URL of the page on your website and the visitor count for the date range specified.

share|improve this answer

This is easy to achieve. You first connect to your GA account You choose your website Then, go to Content on the left menu and look at the bottom right position of the loaded page you will se all the pages accessed on your website.

share|improve this answer
Andry wants to use the API to get this information. – paulmorriss Oct 29 '12 at 8:15
lol, oh yes, I see that :) – Mohamed Anis Dahmani Oct 29 '12 at 11:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.