• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Analytics Ninja

Analytics Ninja

Silently Surpass the Competition

  • Our Team
  • Services
    • Google Analytics Audit
    • Google Analytics Implementation
    • Google Tag Manager Implementation
    • Dashboarding and Reporting
    • Data Analysis
    • Amplitude Implementation Services
    • Amplitude Reporting Services
    • Tracking & Analytics for Shopify Stores
    • Shopify Data Reporting Services
  • Our Clients
    • Client Portfolio
    • Testimonials
  • Blog
  • Contact Info
  • Hire Us

“Google Analytics isn’t working!” – A possible fix.

July 27, 2009 by Analytics Ninja 2 Comments

This Google Analytics Ninja seems to have saved the day and spotted a problem with code implementation for a friend’s WordPress blog.  (Well, a friend of a friend, but I guess it is about the same thing).

On July 20th, I was approached with the all too common, “I believe that I”ve configured Google Analytics properly, but it isn’t working!” problem.

I took a look at their source code, and I spotted an extra space.

analytics tracking code with a space2

Google Analytics Isn't Tracking – problem

I thought to myself, “hmm… how did that space get there?”  In the WordPress backend, I confirmed that indeed a space was the culprit.

Google Analytics Isn't Tracking - Fixed

Google Analytics Isn't Tracking – Culprit

I don’t know about you, but I don’t think I would have caught that problem just by looking at the Analytics for WordPress plugin configuration page.

Shortly thereafter, we were able to see GA tracking properly.

Proof of Success

Proof of Success

Action Item:  Check your source code for any unwanted spaces.

Extra note: this can be the culprit for e-commerce tracking issues as well.

Reader Interactions

Comments

  1. Guest says

    November 1, 2014 at 7:41 pm

    Here’s another simple fix to why Google Analytics may not be tracking. In my case, I had already verified caldwellsroofing.com (months earlier, and unbeknownst to me, and on “Webmaster Tools” not “Analytics”), and when I was trying to add tracking to “www.caldwellsroofing.com” (on “Analytics” page), it went crazy and said “website not tracking.” I tried moving the code to different places in my WordPress site (I have Genesis theme and Dynamik child) to no success. However, when I went it to Google Analytics and created a new “property” that left the “www” out of the url, then it worked! After copying and pasting into WordPress the new code snippet with a different Tracking ID, it said “website tracking” immediately, and I didn’t even have to refresh the Analytics page to see it! Also, the correct place to put the analytics code in the Genesis w/ Dynamik child is, enter the site’s dashboard, hover over “Genesis,” and then click “Theme Settings,” paste it in the header box, and click “Save Settings.” Now it works for me! Obviously, I still have to wait a while before it will have some data.

    Reply
  2. jutt says

    December 1, 2014 at 7:56 am

    Hi,

    Wow, your site is looking good!
    Thank you for sharing this information.
    Keep it up!

    Please check out my website buy premium WordPress theme

    with kind regards,

    memoona

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

What we Offer

  • Google Analytics Audit
  • Google Analytics Implementation
  • GTM Implementation
  • Dashboarding and Reporting
  • Data Analysis

Find us here

  • Facebook
  • LinkedIn
  • Phone
  • Twitter

Who we Are

  • About Us
  • Contact Us
  • Privacy and Cookies

Blog Topics

  • Advanced Segmentation (4)
  • Bounce Rate (1)
  • Conversion Attribution (3)
  • Conversion Tracking (1)
  • Google Analytics Cookies (3)
  • Google Cloud Platform (1)
    • BigQuery (1)
  • Google Product Search (1)
  • Key Performance Indicators (2)
  • Miscellaneous (3)
    • Shopify (1)
  • Tagging (2)
  • Troubleshooting (2)
  • Uncategorized (24)
  • Universal Analytics (1)

Footer

Like us, Follow us

  • Facebook
  • LinkedIn
  • Phone
  • Twitter

Services

  • Google Analytics Audit
  • Google Analytics Implementation
  • GTM Implementation
  • Dashboarding and Reporting
  • Data Analysis

About

  • About Us
  • Contact Us
  • Privacy and Cookies

Copyright (c) 2010 - 2025 Analytics Ninja LLC