Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 use Google Analytics on my site...

But, I would like to display some traffic info to the users, like geo localization or just a hit-counter on the main page of my site.

Does Google offer something like this?

share|improve this question

migrated from superuser.com Sep 8 '11 at 18:04

This question came from our site for computer enthusiasts and power users.

Google Analytics has an API, but AFAIK the user needs to have an authorized login and password to see data from the stats. The easiest way to do this is to use another web service as a counter. Under a marketing/usability perspective counters are considered unnecessary and a distraction to users. Unless you have a huge audience and your audience values the popularity of your site. – Osvaldo Sep 8 '11 at 19:19
@Osvaldo: Surely, it needs authorisation, to see the complete statistics. But I just need to put a small "banner" with location of visitors of my little site(like geovisitors geo.digitalpoint.com/a.png), or hitcounter - all i need. – serhio Sep 9 '11 at 9:12

Yes, you can through the Analytics API. For an example of a site that uses the API to openly display data from Analytics including Page Views, Time on Site, Direct Referral, Search Referrals, and more see this SEOmoz post, and then click "Post Analytics" at the bottom of this or any other blog post on that site.

However, note that it sounds like the data can be slow to retrieve, and there may be other limitations, so you may not want to use it in a traditional 'hit counter' fashion. (I would search StackOverflow for the many existing topics on simpler hit counter methods.)

share|improve this answer

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.