How To Boost Your WordPress Website Speed By Hosting gtag.js Locally

Google rolled out a new update from June of 2021 where they mention Google’s Page Experience update and include Core Web Vitals as a new ranking factor.

So, that means your website needs to pass the new Core Web Vitals test to rank on Google.

But, there is a catch. Did you know that a Google product can impact its own Core Web Vitals score, the Google Analytics tracking script can slow down your website and affect your score if it’s not optimized for high performance.

So, what to do now, right? In this article, I will show you how you can boost your WordPress website speed, by hosting your gtag.js locally.

So, you don’t need to worry about that problem.

Have you heard about MonsterInsights? MonsterInsights is the most popular and advanced Google Analytics plugin for WordPress.

I already wrote a review of MonsterInsights, read that to know more about it.

And here we use MonsterInsights to solve our problem.

In MonsterInsights 7.18, which includes an update to how our main tracking script loads on your website.

This update will make our plugin’s script load as fast as possible. MonsterInsights changed the way of loading scripts in their last update.

They also updated their Performance Addon to include the option to host your gtag.js script locally on your server.

The best way you can increase your website’s speed is to reduce the number of external resources of your website.

Google Analytics has a two-hour cache time. But you can serve the script locally, and take full control over the caching file.

MonsterInsights’ Performance addon will automatically fetch the latest gtag.js file from Google every 24hrs to make sure it’s up to date.

Performance tab in MonsterInsights

MonsterInsights comes in two versions: Free and Paid. You will get their free plugin on the WordPress plugin directory.

To get more advanced features, please check their paid plans: Plus (99$/year), Pro (199$/year), Agency (399$/year).

The more you pay, the more advanced features you will get.

How to connect MonsterInsights with Google Analytics – read this article to know about it.

That’s it in this article. I hope you like it. If so, then share it with your friends and family. And don’t forget to leave a comment in the comment section below. Thanks for reading.

Newsletter Updates

Get freebies, and special offers delivered directly to your inbox.

Leave a Reply

Your email address will not be published.