Ensuring Google Analytics is Running Properly

Estimated Reading Time: 3 minutes

Once you’ve pasted the necessary JavaScript code into the pages you wish to track with Google Analytics, there are a handful of ways to make sure Google Analytics is set up and running properly. You can confirm this fact by checking for JavaScript errors in a browser’s console and using Google Analytics’ Real-Time function.

Checking for errors in Google Chrome:  First you’ll want to install the Ghostery extension.  When Google Analytics is running, Ghostery will display “Google Analytics” in a small pop-up window, like in the screenshot below:

Ghostery running in Google Chrome

Chrome’s Ghostery Extension in action

Once you’re sure Google Analytics is running you’ll want to make sure it’s running properly by checking for JavaScript errors.  One option is to right click anywhere on the webpage and select ‘Inspect Element.’  In the new frame that shows up, click the tab named ‘Console’ on the far right.  Another way is to go into the Chrome wrench menu and select ‘Tools>JavaScript console.’  The shortcut for this action is f12.  The console will look like this:

_gaq is not defined Google Analytics error

_gaq is not defined Google Analytics error

In the console you’re looking for the two common JavaScript errors:

    • _gaq is not defined (see screenshot above)
    • pageTracker is not defined
If you see one or more of these errors on any of your website’s pages you should contact your web developer immediately, as you might be missing out on valuable analytics information and/or receiving incorrect information about your website’s traffic from Google Analytics.

JavaScript Errors in Firefox:  It’s also a good idea to check for JavaScript errors on more than one browser to cover your bases.  In Firefox, first you’ll need to install the Ghostery and Firebug extensions.  To do this simply go to the Firefox menu, select “Add-ons,” then search for each Extension.  Once installed, the Ghostery and Firebug logos will appear in the Navigation toolbar.  Like with Chrome, when the page loads Ghostery will tell you if Google Analytics is running, and by clicking the Firebug logo or hitting f12 you can turn the Console on and off.  Once in the Console, like with Chrome, you’ll want to go through a handful of pages looking for the specific Google Analytics-related JavaScript errors: _gaq is not defined and pageTracker is not defined.

Real-Time Google Analytics:  Finally, if you want to confirm your Google Analytics is set up and working properly, use Google Analytics’ Real-Time function.  For an in-depth look at Real-Time Google Analytics check out 8 Reasons Why Google Analytics Real-Time is so Awesome.  In the GA dashboard, click the Home tab [1] at the top and select “Real-Time” on the left-hand side [2].  Test that Google Analytics is working properly by going to different pages in one window and ensuring “Active Pages” [3] in Real-Time is changing with you.  A screenshot of these three features is below:

Google Analytics Real-Time Dashboard

Google Analytics Real-Time Dashboard

If you have any questions or would like to learn more about this topic please contact info@infotrustllc.com.

Article written by James Love

Author

  • James Love

    Jimmy Love is currently the Industry Team Manager for the Healthcare & Fitness Industry Team at InfoTrust. Jimmy was a contributor to InfoTrust’s Crawl, Walk, Run Amazon best-selling book series, and a speaker at the New York City Durability Summit. Jimmy works with some of the largest healthcare and fitness organizations in the world, helping them advance their digital analytics maturity in a forward-thinking and strategic manner.

    When away from his desk, Jimmy enjoys attending Cincinnati Bearcats football and basketball games, and spending quality time with his beautiful wife and dogs.

Facebook
Twitter
LinkedIn
Email
Originally Published: June 25, 2012

Subscribe To Our Newsletter

May 31, 2023
Originally published on June 25, 2012

Other Articles You Will Enjoy

Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

So you’ve created your Google Analytics 4 (GA4) properties, created your data stream(s), and followed all the necessary steps to configure your property. Now…

5-minute read
What Is Consent Mode in Google Analytics 4 and How Does It Work? | A Beginner’s Guide

What Is Consent Mode in Google Analytics 4 and How Does It Work? | A Beginner’s Guide

Consent Mode in Google Analytics 4 (GA4) is a helpful tool for website owners to respect user privacy preferences when it comes to tracking…

3-minute read
How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

Has your business found that its reporting needs require advanced analysis of your analytics data beyond what is practical in the Google Analytics 4…

4-minute read
How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

All Google Analytics 4 (GA4) property owners can now enable ‌data export to BigQuery and start to utilize the raw event data collected on…

2-minute read
Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

In today’s digital landscape where content reigns supreme, understanding how your audience interacts with your content is paramount for success. For news and media…

5-minute read
Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes

Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes

Google Analytics 4 (GA4) is embracing the power of machine learning by incorporating predictive analytics within the platform so that you can use your…

7-minute read
Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

AI-powered insights and predictive analytics are revolutionary tools reshaping the modern marketing landscape. These advanced analytics techniques, particularly prominent in Google Analytics 4 (GA4),…

8-minute read
Google Analytics 4 Implementation Checklist: Ensure You’re Tracking Everything You Need

Google Analytics 4 Implementation Checklist: Ensure You’re Tracking Everything You Need

In the dynamic landscape of digital marketing, data is supreme. Understanding user behavior, preferences, and interactions on your website is crucial for making informed…

4-minute read
Is It Time to Upgrade? 4 Signs Your Organization Needs Google Analytics 4 360

Is It Time to Upgrade? 4 Signs Your Organization Needs Google Analytics 4 360

As VP of Partnerships at InfoTrust, I’ve had the opportunity to talk with hundreds of decision-makers about their interest in upgrading to Google Analytics…

4-minute read

Get Your Assessment

Thank you! We will be in touch with your results soon.
{{ field.placeholder }}
{{ option.name }}

Talk To Us

Talk To Us

Receive Book Updates

Fill out this form to receive email announcements about Crawl, Walk, Run: Advancing Analytics Maturity with Google Marketing Platform. This includes pre-sale dates, official publishing dates, and more.

Search InfoTrust

Leave Us A Review

Leave a review and let us know how we’re doing. Only actual clients, please.