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've got two index.html files for different subdomains (www. and gametimer.smartersoftware.de). I have enabled sub-domain tracking in Google Analytics and posted the corresponding script.

However, I only see index.html, apparently for both files. I would like to be able to distinguish between the two. What do I have to change to enable that?

share|improve this question
Are the page titles different? You can view the analytics by page title if they are to differentiate them. – StephenCollins Feb 1 '13 at 21:46
That worked for me .. can you submit as an answer so I can up vote? – Thorsten Feb 2 '13 at 8:50
Sure thing. Thanks. – StephenCollins Feb 6 '13 at 18:04
up vote 3 down vote accepted

The easiest way to do this, if the page titles are different, would be to view the analytics by 'page title' instead of by 'page'.

share|improve this answer

Well you should be able to tell what ones are different from hovering over them, personally I'd remove index.html all together and just have / as the root.

You can remove index.html so it appears as domainname.com/ by editing the htaccess file.

Add the below code if this solution works for you.

RewriteEngine On # remove this, if you have it already

RewriteCond %{REQUEST_URI} index\.html
RewriteRule ^(.*)index\.html$ /$1/ [R=301,L]

Alternatively you could make visitors go to /site1.html and /site2.html using the redirect in the htaccess but to be honest for the sake of Analytics its rather silly since your adding a redirect on a site which some people don't like and it adds some render time on the page.

share|improve this answer
Maybe my question was a bit muddy: I'm seeing only one index.html in the list - showing the sum of both files. I'm not sure how rewriting the URLs is going to change that. – Thorsten Feb 2 '13 at 8:53

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.