Are you taking a look to modify to the newest Google Analytics model?
Google is now recommending site homeowners to transport to the brand new Google Analytics 4 as a result of they’ll be sunsetting the former Common Analytics on July 1, 2023. After the sundown day, you gained’t have the ability to observe information within the older model.
On this article, we’ll display you learn how to simply transfer to Google Analytics 4 in WordPress.

Why Transfer to Google Analytics 4?
Google Analytics 4 (GA4) is the newest model of Google Analytics. It means that you can observe your cell apps and internet sites in the similar account, and provides new metrics, studies, and monitoring options.
For those who haven’t created a GA4 assets but, then now’s the most efficient time to modify to the newest model. That’s as a result of Google introduced that it’ll be ultimate down the previous Common Analytics on July 1, 2023.
What this implies is that Common Analytics will now not obtain information out of your WordPress website, and it’ll ultimately forestall operating after the sundown date. That signifies that your whole previous analytics information can be misplaced.
Switching to Google Analytics 4 once conceivable will give protection to you from ranging from scratch with out a historic information.
To do that proper, numerous sensible site homeowners are the usage of the twin monitoring approach which lets you proceed the usage of the present Common Analytics whilst get started sending information to GA4.
This manner, you’ll future-proof your information whilst giving your self numerous time to be informed the brand new Google Analytics dashboard and lines.
That being mentioned, let’s see how you’ll transfer to Google Analytics 4 in WordPress with twin monitoring.
Making a Google Analytics 4 Assets
If you have already got an present Google Analytics account the usage of the previous model, then you’ll eaily create a brand new GA4 assets and get started sending stats to GA4.
First, you’ll wish to discuss with the Google Analytics website and login for your account.
After that, head over to the ‘Admin’ settings web page within the backside left nook.

For those who’re on vintage Google analytics, you then’ll see the approach to setup GA4.
Cross forward and click on on ‘GA4 Setup Assistant’ below the Assets column.

In your next step, the setup assistant provides you with 2 choices. You’ll be able to create a brand new Google Analytics 4 assets or attach an present one.
Since we’re putting in place a brand new assets, merely click on the Get Began button below the ‘I wish to create a brand new Google Analytics 4 assets’ choice.

A popup will now seem with the main points concerning the setup wizard.
For those who’ve applied your Common Analytics the usage of the International Web site Tag (gtag.js) code, you then’ll see an approach to Allow information assortment the usage of present tags.
This makes use of the prevailing monitoring code for your web site to gather knowledge. That mentioned, in the event you don’t have already got the proper monitoring code for your site, we’ll display you learn how to upload it for your WordPress blog under.
For now, you’ll cross forward and click on the ‘Create assets’ button.

The setup wizard will upload a brand new GA4 assets and replica the Common Analytics assets identify, site URL, timezone, and forex settings.
You’ll be able to now view your new Google Analytics 4 assets within the GA4 Setup Assistant.

Subsequent, you’ll wish to click on at the ‘See your GA4 assets’ button to look your Google Analytics monitoring code.
After clicking at the button, merely click on at the ‘Tag set up’ approach to retrieve your monitoring code.

You must now see your new GA4 assets below Information Streams.
Cross forward and click on for your new assets.

A brand new window will slide in from the proper, and also you’ll have the ability to see your internet circulation main points.
Observe: Google Analytics 4 makes use of each ‘information circulation’ and ‘internet circulation’. Those each merely imply the go with the flow of analytics information that Google Analytics receives out of your site.
Merely scroll right down to Tagging Directions segment and click on the International web site tag (gtag.js) approach to make bigger the settings. You’ll now see your Google Analytics monitoring code that must be added for your WordPress web site.

Something you wish to have to grasp is that Google Analytics 4 studies are somewhat other than what you’re used to in Common Analytics.
They have got offered new terminology, and lots of acquainted metrics and studies are lacking totally. Mainly in the event you had been the usage of commonplace studies just like the Best Touchdown Pages record or others, you then’d need to recreate the ones from scratch in Google Analytics 4.
That’s why we suggest the usage of MonsterInsights Pro and even the free version of MonsterInsights.
It’s going to assist you to see the entire acquainted analytics studies proper on your WordPress dashboard, and it additionally means that you can use each Common Analytics and Google Analytics 4 on the identical time.
To not point out, with MonsterInsights you get the entire robust monitoring options equivalent to outbound hyperlink monitoring, creator monitoring, and extra which may also be enabled with out writing any code.
Let’s check out learn how to simply arrange Google Analytics 4 for your WordPress web site with MonsterInsights.
Including Google Analytics Monitoring Code to WordPress Web site
One of the simplest ways so as to add Google Analytics monitoring code for your WordPress site is by way of the usage of MonsterInsights. That is the plugin that we use on WPBeginner.
MonsterInsights is the best Analytics solution for WordPress, and it’s depended on by way of over 3 million web sites as it means that you can simply setup complex monitoring with none coding talents.
You’ll be able to use the MonsterInsights Lite version to arrange Google Analytics very quickly. There also are premium MonsterInsights plans that supply extra options like customized dashboard studies, e-mail summaries, scroll monitoring, eCommerce monitoring, top class integrations, and extra.
MonsterInsights additionally gives twin monitoring, that means you’ll use each Common Analytics and Google Analytics 4 on the identical time. That is to be had in each the unfastened model as neatly paid, and we extremely suggest the usage of this to be sure that your transition to GA4 is going easily.
First, you’ll wish to set up and turn on the MonsterInsights plugin. For extra main points, please see our information on how to install a WordPress plugin.
Upon activation, you’ll be taken to the MonsterInsights welcome display screen on your WordPress dashboard. Merely click on the ‘Release the Wizard’ button so as to add Google Analytics for your web site.

After clicking the button, the setup wizard will ask you to make a choice a class that very best describes your site.
You’ll be able to choose between a trade site, writer (weblog), or online store. If you’ve decided on a class, click on the ‘Save and Proceed’ button.

In your next step, you’ll wish to attach MonsterInsights together with your WordPress web site.
Cross forward and click on the ‘Attach MonsterInsights’ button.

If you click on the button, you’ll wish to check in for your Google Account.
Merely make a selection your account and click on the ‘Subsequent’ button.

Subsequent, MonsterInsights would require get entry to for your Google Analytics Account.
MonsterInsights App wishes those permissions, so it will let you setup analytics correctly and display you the entire related stats proper within your WordPress dashboard.
You’ll be able to click on the ‘Permit’ button to proceed.

After that, you’ll be redirected again to the MonsterInsights setup wizard.
To finish the relationship, make a selection your Google Analytics 4 assets from the dropdown menu and click on the ‘Whole Connection’ button.

Subsequent, MonsterInsights will attach Google Analytics together with your WordPress site.
At the subsequent display screen, you’ll see some advisable settings like record obtain monitoring and affiliate link tracking.
You’ll be able to use the default settings within the setup wizard. On the other hand, in the event you’re the usage of an affiliate link plugin, you then’ll wish to input the trail you employ to cloak the affiliate links.

Subsequent, you’ll scroll down and make a selection who can see studies and upload other WordPress user roles.
If you’re executed, click on the ‘Save and proceed’ button.

After that, MonsterInsights will display other monitoring options that you’ll allow in your site.
You’ll be able to scroll down and click on the ‘Skip for Now’ button.

Subsequent, you’ll see a tick list appearing that you simply’ve effectively attached Google Analytics for your site.
As an example, it’ll display that you simply’re effectively attached to Google Analytics, the monitoring code is correctly put in, and the information is being accrued.

That’s it, you’ve added Google Analytics 4 assets for your WordPress web site.
Making a Size Protocol API Secret
If you wish to MonsterInsights to trace eCommerce purchases, form conversions, and extra complex monitoring in Google Analytics, you then’ll wish to create a Size Protocol API Secret.
First, you’ll wish to return for your Google Analytics account after which cross to Admin settings. Subsequent, click on at the ‘Information Streams’ choice below Assets column.

Then you definitely’ll want to make a choice the Google Analytics 4 assets that we created previous.
Cross forward and make a selection your house below Information Streams.

After that, you’ll scroll right down to the ‘Complicated Settings’ segment.
Merely click on the ‘Size Protocol API secrets and techniques’ choice.

A brand new window will now slide in together with your Size Protocol API secrets and techniques.
You’ll have to click on the ‘Create’ button.

After that, input a nickname in your API secret so it’s simply identifiable.
Whilst you’re executed, click on the ‘Create’ button.

You must now see your Size Protocol API secret.
Merely reproduction the API secret below the ‘Secret price’ box.

After that, you’ll head again for your WordPress site and navigate to Insights » Settings out of your dashboard.
Now click on at the ‘Common’ tab on the best.

Subsequent, you’ll have to scroll right down to the ‘Google Authentication’ segment.
Cross forward and input the Secret price you simply copied within the Size Protocol API Secret box.

You’ve effectively added Size Protocol API Secret in MonsterInsights.
Environment Up Common Analytics Twin Monitoring
Now that you’ve setup GA4, your next step is to allow twin monitoring for Common Analytics, so it could possibly run along your Google Analytics 4 assets in WordPress.
With MonsterInsights, you’ll simply arrange twin monitoring and concurrently observe each houses with out writing code.
Observe: If you have already got Common Analytics monitoring code added for your WordPress site, then we suggest disabling it first. Differently, it would result in double-tracking and will skew your information.
To start out putting in place twin monitoring correctly, you’ll head to Insights » Settings out of your WordPress admin panel after which click on at the ‘Common’ tab.

Subsequent, you’ll wish to scroll right down to the ‘Google Authentication’ segment.
Now below the Twin Monitoring Profile, input your Common Analytics (UA) code.

You’ll be able to simply in finding your UA code in Google Analytics Admin settings.
Merely cross to the Admin settings web page in Google Analytics of your Common Analytics assets.

Then click on on ‘Assets Settings’ below the Assets column.
You must see the Monitoring Identification, and it’ll appear to be this: UA-123856789-5

You’ve now effectively arrange twin monitoring for your WordPress site.
To look how your site is appearing, merely cross to Insights » Reviews. Right here you’ll in finding the entire information you wish to have to make the proper choices to develop your site.

We are hoping this newsletter helped you learn to transfer to Google Analytics 4 in WordPress. You may additionally wish to see our ultimate WordPress SEO guide to toughen your ratings, or see our comparison of the best email marketing services for small trade.
For those who favored this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally in finding us on Twitter and Facebook.
The put up How to Switch to Google Analytics 4 in WordPress (The RIGHT Way) first gave the impression on WPBeginner.
WordPress Maintenance