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

Right now I'm using statcounter and Google analytics. They are great. But my counts are currently separated. Ex: website.com = 1000 visits a day, website.com/about = 50 visits a day, website.com/privacy = 10 visits a day, etc..

How can have a combined count of all of my sub-pages? (mainpage + about page + about 100 other sub-pages )

I can of course manually add them all together, but that's time consuming because there are many pages. I tried placing a separate tracking code in a PHP include that sits in each of the sub-pages, but it doesn't seem to be working. It seems to require a single URL to create it, which it then only counts the visits from the one URL, rather than ALL of them. Ex: website.com)

share|improve this question

migrated from stackoverflow.com Mar 10 '11 at 2:40

This question came from our site for professional and enthusiast programmers.

Google Analytics allows creating reports for your entire website too. You should just create a single analytics account and add the required code to all pages. Then you can see all kinds of data, for both the entire website and separate pages. But also per browser, per country etc. – GolezTrol Mar 8 '11 at 20:29
up vote 0 down vote accepted

I'm confused about the issue here - On Google Analytics this is in the top "site usage" section of the dashboard and on statcounter it's on the "summary" report (the first one on the list).

share|improve this answer
thanks for responding. So here's the issue, does my one-time addition of code ONLY to the main page of the website (website.com), also count visits to OTHER PAGES of the website (website.com/about) ? I would think that the code would have to be placed ON EVERY PAGE of the website to count ALL visits, but i could be wrong. Does this make sense Ewan? – realcheesypizza Mar 10 '11 at 13:48
Yes, you need to place the code on all the pages of the site but use the same profile ID for all of them. – Ewan Heming Mar 10 '11 at 14:42
ok great! so doing that will then give me some form of breakdown between pages? So i can for instance, see that website.com/about is getting 100 visits a day vs website.com/contact is only getting 50 visits a day? yes? – realcheesypizza Mar 10 '11 at 15:22
Yes, that's right – Ewan Heming Mar 10 '11 at 15:23
thank you Ewan, much appreciated! – realcheesypizza Mar 10 '11 at 15:28

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.