'/' and '/index.html' tracked separately

Even though www.example.com/ may be the same page as www.example.com/index.html, they show up as two separate entries in your reports. You can configure Google Analytics to treat them as the same page by defining the Default page for your site:

  1. Navigate to the desired account, property, and view.
  2. In the VIEW column, click View Settings.
  3. In the Default page field, enter the default page for this domain. This is the page that loads when a user enters only the domain of your site into their address bar. For example, if www.example.com loads your index.html web page, enter index.html in this field.
  4. Click Apply.

This also works at the subdirectory level. In other words, once you have entered index.html as the default page, Google Analytics also treats example.com/subdir/ and example.com/subdir/index.html as the same page.

Was this article helpful?