When using Google analytics, it's easy to find out if you have the tracking code installed, but that doesn't mean that it is working. Even if Google reports the tracking code has been detected and installed, you may have syntax errors that can cause problems.

To properly check your Google Analytic tracking code, you should first ensure it is installed, and then ensure there are no errors within the tracking code iteslf. In this tutorial, we will walk you through these steps.

Ensure your tracking code is installed

To check if your tracking code is installed, please see Google's official documentation here. When the tracking code is found to be installed, you will see a message similar to the following:
 
Not Installed
chrome-analytics-debugger-1-not-installed-google
Installed
chrome-analytics-debugger-2-installed-google

Checking your tracking code for errors

The Google Chrome browser has an addon that is available that will check and debug the Google Analytics code for any errors. The following tutorial will explain how to use the Google Analytics Debugger.

  1. Visit the Google Chrome store for Google Analytics Debugger
  2. chrome-analytics-debugger-3-add-googleClick the Available on Chrome button on the top right.

    chrome-analytics-debugger-4-added-googleOnce installed the button will say Added to Chrome.


  3. Next, Click the GA Debugging icon at the top right to turn the Google Analytics Debugger On.

    GA Debugger off
    chrome-analytics-debugger-5-enable-google
    GA Debugger On
    chrome-analytics-debugger-6-on-google

  4. Visit the your site to view the Google Analytics process. When the debugger runs, any error will show in red. In this case the following error is thrown:

    The _setAccount API expects an account string for argument 0. The argument given (36141341-1) does not match the expected format of UA-XXXXXX-X.

    This error is caused by the Google Analytics code not being set to the correct account format.

    Analytics Error
    chrome-analytics-debugger-7-error-google
    No Analytics Error
    chrome-analytics-debugger-8-no-error-google

    If you see the above error or one similar, visit this page for a comprehensive list of possible problems and how to correct them.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-03-13 4:58 am

Hello James,

I am in charge of different websites and for some of them, the debugger doesnt work at all, since there is no information ...  the screen is just blank

However, I am receiving data, so the code is installed and "working"

Why do you think it can be happening?

Thanks,

Javi

 

 

 

 

Staff
8,065 Points
2014-03-13 8:11 am
It could possibly be due to an old version of the tracking code being present in your sites. Other code on the site could also be preventing the information from being displayed.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!