'/' 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 Analytics to treat them as the same page by defining the Default page for your site:
- Navigate to the desired account, property, and view.
- In the VIEW column, click View Settings.
- 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.htmlin this field.
- Click Apply.
This also works at the subdirectory level. In other words, once you have entered
index.html as the default page, Analytics also treats example.com/subdir/ and example.com/subdir/index.html as the same page.