Upgrade Google Analytics to the Latest Tracking Code (gtag.js)

Upgrade Google Analytics to the latest version to get the most out of Google Analytics and your website tracking.

Table of Contents

If you want to upgrade Google Analytics, it will only take you a few minutes to install, configure and test it to ensure you’re all set!

Some of you may have received an email from Google reminding you to upgrade to the lastest dynamic tagging solution.

upgrading to new google analytics

The old version using analytics.js should be changed over to the gtag.js version.

What Version of Google Analytics Am I Using?

There are a couple of ways you can check to see what version you are using.

Version Checking via Source Code

If you view the source code of your website, you will be able to see the Google Analytics tracking code.

Right click on your page from the frontend view, and choose the option view source. This may differ on different browsers. We’re using Google Chrome.

Screen Shot 2020 10 08 at 6.55.44 am

You can now search the source code for the Google Tracking code.

Press Ctrl+F (Windows) or CMD+F (Mac) and that will bring up the search input field.

Type, analytics, and that should highlight some of the code on the page if you’re using the older tracking tag.

If that doesn’t appear, the search for ‘gtag’.

If you see some code highlighted for that, then you’re most likely already using the latest version of Google Analytics.

google tag manager source code

Checking via Google Analytics Plugin Version

If you’re using our plugin and have anything lower than version 5, then it is most likely you are using the asynchronous or universal (analytics.js) version of Google Analytics.

Upgrading the plugin to version 5.x.x will ensure that you have the option to upgrade your tracking to the latest version.

Download and install the latest version from our website. (Read how to install Google Analytics for Joomla)

google analytics joomla config options

Add in your Google Analytics tracking ID and click SAVE.

You’re now up and running with the latest version of Google Analytics.

How to Test that Google Analytics is Working?

You can test your website and ensure that it is sending traffic to Google Analytics by using the Real-Time overview screen from your Google Analytics dashboard.

Log into Google Analytics and navigate to your account.

From Reports, choose Real-time.

google analytics real time

Open another tab or browser window and visit your website. You should see at least yourself appear in the tracking statistics for real-time users.

This confirms that you’re getting traffic to your website and Google Analytics is setup and working on your website.