• Skip to main content

Annielytics.com

I make data sexy

  • About
  • Services
  • Tools
  • Blog
  • Portfolio
  • Contact
  • Log In

Jun 03 2016

The Worst Setting In Google Analytics [VIDEO]

 

firefighters near fire

One of Google Analytics’ greatest charms is its ability to be highly customized. However, sometimes the ability to tinker with its infrastructure comes with risks. One of those risks is the unassuming but potentially deadly Default Page setting.

Default Page setting in Google Analytics

The Default Page Setting Hates Kittens

brown Scottish fold in brown thick-pile blanket

That’s just raw, Google!

For people who might be confused about what the Default Page setting does, Google has provided this very helpful tool tip when you hover over the question mark:

Enter the default page for your domain so that multiple URLs that point to the same page are treated as the same entry in your reports. For example, if example.com and example.com/index.html both open the same page, you can enter index.html in this field.

I can’t tell you how many of these errants entries I’ve caught in analytics audits. Someone sees that their site uses an index page (usually .php or .aspx, not .html) and enters it into this field.

The problem with this approach is that if you drop an index page into this field, Google will append every request URI (geek speak for the URLs you see in your content reports) with whatever you enter into this field.

My Test That Resulted In Frankendata

For the sake of science, I decided to trash my Test view by adding index.html into my Default Page setting. Check out my All Pages report:

index.html hell from the Default Page setting in Google Analytics

It’s like my data died and woke up in index.html hell. If you thought this setting would help you clean up your reports, you will probably be sorely disappointed.

why Google Analytics' Default Page setting is horrible

So what happens when you add something into that field is Google appends it to the end of every URL in your content reports that ends in a forward slash. And if those pages aren’t real, when you click the target icon to the right of every URL in a content report, you will be met with a 404 page.

A Better Alternative

Behind Curtain 1

The best way to handle a site that allows visitors to access a page from two different URLs like it’s 2007 (e.g., /my-page/ and /my-page/index.php) is to have the /index.php version redirect to the /my-page/ page. This is both better for your SEO and analytics.

Behind Curtain 2

If your developers are on strike or too busy playing Candy Crush to set that up for you, the next best alternative, in my opinion, is to use a Search and Replace filter in Google Analytics to remove the index pages. I demonstrate how to set this up in the video below (with two alternatives because I’m just that accommodating).

Video

Image Credits:
  • Matt C on Unsplash
  • Mikhail Vasilyev on Unsplash

Written by Annie Cushing · Categorized: Analytics

Reader Interactions

Comments

  1. Maanikamili says

    June 4, 2016 at 6:20 am

    Amazing .. I will bookmark your blog and take the feeds additionally? I’m satisfied to find so many helpful information here within the put up, we want work out extra strategies in this regard, thanks for sharing..

    Reply
  2. Hector says

    June 29, 2016 at 6:11 pm

    Thanks! Just fixed it on one of the sites that I look over now. You rock.

    Reply
    • Annie Cushing says

      July 1, 2016 at 9:26 am

      Happy to help!

      Reply
  3. Christian says

    September 1, 2016 at 11:42 am

    Hello,

    thank you for this article. In fact I entered some values in that field in some properties.
    Actually I haven’t fully understood how to really solve this problem. What do you mean by saying:
    “The best way to handle a site that allows visitors to access a page from two different URLs like it’s 2007 (e.g., /my-page/ and /my-page/index.php) is to have the /index.php version redirect to the /my-page/ page.”
    Does it mean to modify the .htaccess-file or … ?

    And: Should I leave the field “Default page” empty – or not? As this field exists – it seems to be of value. But in which cases? Maybe you could point that out.

    Thanks and keep up the great work

    Reply
    • Annie Cushing says

      September 1, 2016 at 2:39 pm

      Yes, that’s what I mean. There are other SEO-related reasons it’s better to have redirects set up. And yes, I’d always leave that setting empty. It’s a menace and does more damage than good.

      Reply
      • Christian says

        September 2, 2016 at 3:57 am

        Thank you!

        Reply
  4. Caitlin McCluskey says

    May 31, 2017 at 10:38 am

    I follow your article for the most part but I’m still stuck on what to do if this has ALREADY been set and I’m trying to fix it? A Search and Replace filter would be better than just removing that from the Default Page field altogether?

    If I do remove that from the field, will it apply retroactively or no? Is there ANY way to clean up the historical data caused by this being implemented incorrectly?

    Reply
    • Annie Cushing says

      May 31, 2017 at 12:39 pm

      No, Google doesn’t allow you to reprocess data. ?

      Reply
  5. Geo says

    August 29, 2017 at 3:06 pm

    Hi Annie, Do you know if there has been an update within google analytics to ensure that the frankendata doesn’t expose your site with the added default page. When I found that we had this default page entered here, I quickly went to review my data and found that it didn’t append the page at the end of the URL’s so maybe we were lucky and will follow up with a filter instead but was wondering if this was a bug that was fixed within GA.

    Reply
    • Annie Cushing says

      September 5, 2017 at 5:08 pm

      I love it when the GA team quietly fixes something. Yes, it appears that the setting does absolutely nothing now.

      Reply
  6. Nathan Driver says

    September 6, 2017 at 12:58 pm

    Came across this post searching for insight. Upon GA “Analytics Notifications” I set the default page with something besides “/” and bounce rate jumped over 25%. Changed the settings back and it remained. I just did your suggestion with search and replace so hope to see better numbers soon.

    Thought you might be interested to know in the BR jump just from this setting.

    Reply
    • Annie Cushing says

      September 6, 2017 at 2:18 pm

      I’m not sure what you mean by this: “Upon GA “Analytics Notifications” I set the default page with something besides “/” …” And the Default Page setting shouldn’t affect bounce rate.

      Reply
  7. Leyna says

    September 27, 2017 at 10:58 am

    Hi! If I do this, will the data merge in the GA reports?

    For example, if “/” has 10 pageviews and “/.index.html” has 10 pageviews, and I do the “Search and Replace” filter, will the new data display as 20 pageviews?

    Thanks!

    Reply
    • Annie Cushing says

      September 29, 2017 at 3:03 pm

      Oddly enough, Google very quietly turned off the impact of this setting. I set it up on a test view (screenshot: https://www.screencast.com/t/I2UmJ09YydOW) when I was running a test for this post. And you can see that on May 9th last year all pageviews to pages ending in index.html dropped to 0. This was a change that was obviously backdated since this post was published a month later.

      Reply
  8. Philip Pellat says

    May 1, 2018 at 4:20 pm

    I wish I could get this to work.
    Any thoughts?

    Reply
    • Annie Cushing says

      June 6, 2018 at 7:34 pm

      More details?

      Reply
  9. Cyndi Smith says

    June 6, 2018 at 6:52 pm

    Great post! Thank you so much. The video was very easy to follow so I could figure out how to apply a filter to undo the mess I made with my data by including index.php for a few days in the default page field. GAH! I wish I’d never done that!

    Reply
    • Annie Cushing says

      June 6, 2018 at 7:34 pm

      Happy to help!

      Reply
  10. Abby Buzon says

    July 5, 2018 at 1:48 am

    Oh my God, you crack me up! I’m so glad I found you!
    I just went to give a client their 1st monthly Analytics report after launching their new site. To my unpleasant surprise, it’s the first I noticed the retro”index.htm” addition to all my tidy 2018 URL’s. Now I gotta go clean up this disco of a mess.
    THANK YOU!

    Reply
    • Annie Cushing says

      July 5, 2018 at 10:06 am

      There ya go! Happy to help! ??

      Reply
  11. Amir says

    September 25, 2018 at 8:49 am

    So what happens when you remove that setting? Will it affect the data collected in the past in a good or bad way? Will you end up with two different links now or will it adjust the past collected data?

    Reply
    • Annie Cushing says

      September 30, 2018 at 11:34 am

      It only affects reports moving forward. Google doesn’t allow you to modify historical data.

      Reply
  12. Bukunmi Adewumi says

    March 1, 2019 at 5:38 am

    Hey Annie,

    Many thanks for the helpful tutorial. I have resolved my blog’s junk /index.html to just / now. So easy to implement with the video.

    Reply
    • Annie Cushing says

      March 7, 2019 at 10:25 pm

      Perfect!

      Reply
  13. Terry says

    July 15, 2019 at 2:51 pm

    I have pages showing up as .com (with no forward slash) and .aspx…..so i have many duplicate pages in GA reports – with no forward slash and with .aspx., which leads me to believe the filter won’t work?

    Reply
    • Annie Cushing says

      July 16, 2019 at 2:08 pm

      Hi Terry, I’m not sure what you’re asking.

      Reply
      • Terry says

        July 22, 2019 at 9:37 am

        Hi – here’s an example of what I mean:

        /en/shop/fencing.aspx
        /en/shop/fencing

        if there is no forward slash after the second URL (/fencing), the filter won’t work?

        thank you!

        Reply
  14. Andrea says

    August 20, 2019 at 1:06 pm

    Hello! Great post. One question? Does the find and replace Filter work backwards, I mean does it clean up all analytics data? I’ve tried but it does not seem to work. I says that “This filter would not have changed your data. Either the filter configuration is incorrect, or the set of sampled data is too small.” but i’ve double checked and it seems to be exactly set up as in your video , I still see index.html in the Analytics Page Results

    Reply
    • Annie Cushing says

      August 20, 2019 at 1:37 pm

      Thanks for the kind words! Unfortunately, none of the filters work retroactively. You have to clean your data up in Excel, your database, or your dashboard.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2025