CWD Forum » Troubleshooting » Error Messages

Google Analytics - Tracking Code Not Installed

(2 posts)
  1. forumator

    member
    Joined: Nov '09
    Posts: 12

    I for the life of me can't get the tracking code to install on my website. I've copied it just below the opening <body> tag, as the instructions suggest, and the tracking status "last checked" time is after the time I added the snippet.

    In addition, I don't have any other urchin.js or ga.js on my index page.

    Any ideas why Google Analytics is not picking up my tracking code and I keep getting the Tracking Code Not Installed message?

    I even tried clearing my browser cache, etc. - no luck

    Posted 3 months ago #
  2. Sponsored Links

    Posted 3 months ago
  3. cwd

    senior admin
    Joined: Jul '09
    Posts: 142

    Are you able to access your website via both example.com and www.example.com? If so, make sure the site is accessible only via one format (either example.com or www.example.com), and that your choice reflects what you entered as the domain name in Google Analytics.

    You can redirect example.com to www.example.com by adding the following code (substitute your own domain name) to the .htaccess file (create one if there isn't one) in your root directory (ie. /public_html or /www - the same one that holds your index file (ie. index.html)):

    Redirecting TO WWW (www.example.com)

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteRule ^(.*) http://www.example.com/$1 [L,R=301]

    Redirecting TO NON-WWW (example.com)

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
    RewriteRule ^(.*) http://example.com/$1 [L,R=301]

    Check out our article on Search Friendly Domain and File Redirects for more info.

    Posted 3 months ago #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.

482 posts in 186 topics over 14 months by 49 of 96 members. Latest: xiezhen, Markjohn, krocodiled