Recently, I have been vexed by a peculiar problem in my Google Analytics account. All my URLs get suffixed by “index.php”. And although the statistics that are being reported just fine, it gets pretty irritating to see non-existent URLs in the reports. And for me, this type of thing keeps pecking away at my piece of mind. To see what I mean, take a look at this screen capture from my Google Analytics Panel:
So, why does this happen? Well, turns out it was some change I made to my Google Analytics settings (I guess I misunderstood the purpose of this setting). Well, here’s how I reverted this back:
To fix this problem, go to Analytics Settings, and do “Edit Profile Information” for your website. One of the fields in the Profile Information is called “Default page”. According to Google:
The Default page is the web page to which your server defaults when no page on the domain is specified. For example, if the index.html page is loaded from your server when a user enters www.yourdomain.com, index.html is considered to be the Default page.
Well, I had set the default page to “index.php”, and the way Google interprets this is that it appends every Url on my website with “index.php”. I removed this, and my URLs are back to normal.