ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Google Analytics URL Parameters not working on homepage only

February 01, 2011 10:58am

Subscribe [1]
  • #1 / Feb 01, 2011 10:58am

    aerometric

    9 posts

    I have Google Analytics installed on all pages of our site. Whenever we use URL parameters to track the source, campaign, etc., the pages load properly. EXCEPT…

    The homepage throws a 404 error whenever it has URL parameters in it.

    We are using this code in the .htaccess file to remove index.php:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

    I found this article which talks about what we’re trying to do, but wanted to see if there is a better (or easier) way to get Google Analytics tracking to work on the homepage.

    Version: 1.6.9, Build: 20100430 (will be upgrading to 1.7 tonight)

    Thanks.

  • #2 / Feb 02, 2011 3:48am

    John Henry Donovan

    12339 posts

    aerometric,

    Can you confirm if it works with your htaccess disabled and your index.php back in place in your General config?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases