• I’ve got Google Analytics installed on my blog, and everything’s working fine from my perspective. My stats look fine, too, except for one thing I just noticed. All of my “Top Content” (most viewed URLS) end in /index.php. So, a valid URL like

    http://danray.org/2007/10/16/what-golden-ages-are-we-in-right-now/

    shows up in Google analytics as

    http://danray.org/2007/10/16/what-golden-ages-are-we-in-right-now/index.php

    Is this normal? The ../index.php URLs all bring up 404s, so I hope my visitors aren’t all somehow getting “page not found” errors. If Google isn’t adding the /index.php to my normal URLs itself, I don’t know how it’s getting there, because there are no links to any of these bad URLs anywhere on my site (I’ve checked).

    Is it because the Analytics code is called by the loop, which lives in index.php? If so, why isn’t Google reporting the URL that my browser reports?

Viewing 5 replies - 1 through 5 (of 5 total)
  • hmmm, just checked out my analytics stats and they all look ok to me. I’m guessing you setup mod_rewrite for your blog? if not search on how to do that but here is the .htaccess file I’m using.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    that’s my only thought about why the index.php is being added to each url. good luck!

    Is it because the Analytics code is called by the loop, which lives in index.php?

    Is this some plugin or what?
    My analytics code is in the footer.

    Thread Starter electriccounterpoint

    (@electriccounterpoint)

    No, mine’s in the footer too. I guess I didn’t mean the loop, but rather the theme’s index.php, which calls the footer (“<get_footer()”). I’m using a version of the Hemingway theme; I wonder if it uses a nonstandard way to call the footer that results in Google Analytics thinking every page is “index.php?”

    Did you ever resolve this issue?

    Google analytics is showing the same thing for me – has me worried…

    I have the same issue and I just found this fix. I had my ‘default page’ in google analytics set as index.php before the site’s root was live. Anyway, I removed that and I’m assuming it will fix it (need to give it some time to make sure). Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Analytics shows everything going to ../index.php — normal?’ is closed to new replies.