GA4 vs Universal Analytics: What’s the Difference

Are you wondering what’s the difference between Google Analytics 4 and Universal Analytics?

GA4 is the latest version of Google Analytics and will soon replace Universal Analytics. In the new version, you get new reports, metrics, tracking systems, and more.

In this article, we’ll compare GA4 vs Universal Analytics and show you what the real difference is between the two platforms.

Difference between Google Analytics 4 and Universal Analytics

GA4 vs Universal Analytics: A Brief Overview

Google Analytics 4 is the new generation of Google’s famous analytics platform. It is designed to track your WordPress website and apps in the same property. Previously you’d have to track your apps and websites separately in Universal Analytics.

With Google Analytics 4, you get a better picture of your customer’s journey across multiple channels and devices. GA4 also offers better data privacy for users.

GA4 reports interface

On the other hand, Universal Analytics (UA) is the previous version of Google Analytics. It was introduced in 2012 and is probably the version many websites use today for tracking their website traffic.

However, Universal Analytics will sunset on July 1, 2023. This means that it will no longer track your visitors after the sunset date, and Google will not support or introduce new features for it.

That’s why it is important that you switch to Google Analytics 4 as soon as possible. This way, you’ll protect your data and have historical records to compare to when UA shuts down.

Let’s look at some significant differences between GA4 and Universal Analytics. You can click any of the links below to be taken to the section for that specific feature.

A Changed Reporting Interface

The first difference you’ll notice between Google Analytics 4 vs Universal Analytics is the new reporting interface.

In GA4, most of the reports have been replaced or renamed. One of the reasons for this is that the latest analytics version uses a different measurement model compared to Universal Analytics.

For example, you’ll see new reports such as Engagement, Monetization, and Retention in GA4.

New reports in GA4

On the other hand, Universal Analytics has a completely different reporting interface.

For example, all the reports are grouped together under 5 main categories.

  • Realtime
  • Audience
  • Acquisition
  • Behavior
  • Conversions.

You can find each of these in the left-hand menu on your main GA4 dashboard.

Universal analytics interface

That said, it can be overwhelming for beginners to understand these reports and uncover insights about their website traffic.

An easier way to get the information you need for decision-making is by using MonsterInsights. It is the best Google Analytics plugin for WordPress and offers a beginner-friendly reporting interface.

You get to see important data inside your WordPress dashboard without worrying about navigating the complex Google Analytics reports.

Overview report in MonsterInsights

If you haven’t set up analytics on your website, then please see our guide on how to install Google Analytics in WordPress.

New Data Measurement Model in GA4

Another major difference between GA4 vs Universal Analytics is how they work when collecting and processing your website data. Universal Analytics uses a measurement model based on sessions and pageviews. Whereas, GA4 uses an event-based model to track your data.

Sessions can link data to a single individual and track them specifically as they interact with your site. Event data is anonymous, and the importance is placed on specific actions taken instead of specific users taking those actions.

This allows you to track complex buyer journeys across multiple devices accurately.

It also makes it easier to enable enhanced measurement features in Google Analytics 4. For example, you can set up outbound link click and scroll depth tracking with a click of a switch in GA4.

With Universal Analytics, on the other hand, you’d have to perform a complex setup or tweak the tracking code to configure that kind of link click-tracking or scroll-tracking.

No Bounce Rate and New Reporting Metrics

With Google Analytics 4, you get new metrics along with new reports. Right off the bat, you’ll notice that there is no bounce rate metric in Google Analytics 4.

Bounce rate tells you the number of users that left your website without interacting, like clicking a link, signing up for a newsletter, or purchasing a product.

Instead, GA4 shows a new metric called ‘Engaged sessions per user.’ It shows how many people interacted with your content. This includes a session where a user stays on a page for 10 seconds or more, triggers 1 or more events, or a user views 2 or more pages.

See average engagement time report

Besides that, GA4 also offers more new metrics in the Engagement report. For instance, there is an average engagement time metric, which used to be the average session duration in Universal Analytics.

Another new metric you’ll find in Google Analytics 4 is the Pages and screens. It shows the pages and app screens that get the most traffic on your website.

You can find this data in UA under the top landing pages report. If you’re using MonsterInsights, then the plugin will show your most important pages inside the WordPress dashboard.

Top landing pages report in MI

Google Analytics 4 Doesn’t Track Form Conversions

The next difference you’ll notice when comparing GA4 vs Universal Analytics is that of form conversions.

Forms are really useful for any business. They allow users to get in touch with you, provide feedback, and resolve their queries. Tracking your WordPress form in Google Analytics helps you see which form performs better.

However, setting up form conversion tracking in Google Analytics 4 requires adding custom code. This can be very tricky if you’re not a developer. The slightest mistake can mess up your tracking and break your website.

That said, MonsterInsights helps you track forms out of the box. You don’t have to edit code or hire a developer. Plus, it shows a report inside your WordPress admin area with impressions, conversions, and conversion rates for each form.

Forms report

Universal Analytics Goals Are Replaced with Events

In Universal Analytics, you can record different user interactions using goals. You get 4 types of goals in UA, which include:

  • Destination – You can set a destination goal to track when a user arrives on a specific page, like a thank you page or a product landing page.
  • Duration – This goal helps you see how long people stay on your website before exiting.
  • Pages per Visit – Using the pages per visit goals allows you to uncover the number of pages a visitor views before leaving your site.
  • Event – With the help of events, you can track user interactions on your site that Universal Analytics doesn’t track by default.

However, Google Analytics 4 replaces these goals with events. For example, if you have an online store, then you can enable events to track interactions and how many people enter payment details and shipment information.

Events to enable in ga4

Perform Advanced Analysis in Google Analytics 4

Another difference between both analytics platforms is the level of advanced analysis you can perform in Google Analytics 4.

In Universal Analytics, you can create custom reports and use secondary dimensions to uncover insights. However, GA4 takes it a step further with its Exploration reports.

Explorations tab in ga4

You get prebuilt templates for different analyses you’d like to perform or if you’d like to set up a custom report.

For example, you can use the ‘Funnel’ exploration template to see your customers’ journey before purchasing.

Besides that, GA4 exploration reports also offer multiple options to add different segments, dimensions, and metrics to your custom reports.

Customize your exploration reports

On a side note, using Exploration reports can be tricky for beginners. These reports are mainly for power users or people with advanced Google Analytics knowledge.

An easier way of uncovering insights is by using MonsterInsights. It shows a stats dashboard inside your WordPress dashboard. You can quickly see how your site performs, which pages people view the most, and much more without creating a complex custom report in Google Analytics.

We hope that this article helped you learn about the difference between GA4 vs Universal Analytics. You can also see our guide on the best WordPress plugins and the ultimate guide to WordPress SEO.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post GA4 vs Universal Analytics: What’s the Difference first appeared on WPBeginner.

The Ultimate Guide to GA4 in WordPress for Beginners

Do you want to use Google Analytics 4 (GA4) but are unsure how to start?

Google Analytics 4 is the latest version of Google’s analytics platform. It has many changes, like a new reporting system and metrics. The way GA4 collects and processes data is also different from the previous version known as Universal Analytics (UA).

In this article, we’ll cover everything about GA4 in WordPress and help you get started.

The ultimate guide to GA4 for beginners

What is Google Analytics 4?

Google Analytics 4, also called GA4, is the new version of Google’s stats dashboard, and it lets you track your website and apps in the same account. It is designed to protect users’ privacy and provide more accurate reports than previous versions.

With Google Analytics 4, you’ll first notice that it has a new interface. It also categorizes some of the old reports differently, as well as adds all-new reports and metrics.

GA4 reports interface

Behind the scenes, GA4 works in a new way for collecting and processing your website data. It records data as event-based instead of using page hits.

For example, when your visitors click a link, view a page, play a video, or download a file, all these website interactions will count as events.

This way, your website performance is measured more accurately, as the event-based model can better track user behavior.

It also makes it easier to enable enhanced measurement features like tracking outbound clicks and scroll depth. You can enable these options with a click of a button instead of performing a complicated setup process.

That said, let’s see why you should use Google Analytics 4 instead of the previous Universal Analytics.

Why Switch from Universal Analytics to Google Analytics 4?

If you haven’t created a GA4 property yet, then you should know that Google will sunset the old Universal Analytics on July 1, 2023.

This means that Universal Analytics will no longer record data from your WordPress site after the sunset date. You’ll still be able to view your old data for at least 6 months after the sunset date, but Universal Analytics won’t track your site’s traffic.

That’s why it is important to switch to a Google Analytics 4 as soon as possible. You won’t have to start from scratch when Universal Analytics stops working and have historical data in GA4 for comparison. Plus, you’ll get all the new features and improvements with Google Analytics 4.

The best way of setting up GA4 is using MonsterInsights and its dual tracking feature. Dual tracking allows you to use Universal Analytics while simultaneously sending data to the GA4 property.

There’s also a free version of MonsterInsights that you can use if you’re just getting started.

For more details, please see our guide on how to switch to Google Analytics 4 in WordPress.

MonsterInsights Dual Tracking GA v4

On the other hand, if you’ve just started a new website and want to set up analytics tracking code, then follow our guide on how to install Google Analytics in WordPress.

Now, let’s look at some of the changes you’ll notice in GA4.

What Has Changed in Google Analytics 4?

The new Google Analytics 4 brings a lot of changes to the analytics platform. While the most noticeable difference is how it works using events, here are a few more changes you’ll see in GA4:

1. A Completely New Reporting Interface

As we mentioned earlier, the first difference you’ll see is the new Google Analytics 4 interface. Many reports from Universal Analytics have been removed or renamed in GA4.

New reporting interface

For example, you will see reports like Engagement, Monetization, and Retention in Google Analytics 4.

2. New Metrics in Google Analytics 4

In Google Analytics 4, you’ll find new metrics. Some metrics names in Universal Analytics have also changed in GA4.

For instance, the new engagement report helps measure your visitors’ interaction with your site, and it offers metrics for average engagement time. In Universal Analytics, this was called average session duration.

See average engagement time report

Another noticeable change is that there is no bounce rate metric in GA4.

Instead of seeing a percentage of how many people left your site without interacting, you’ll see metrics like Engaged sessions per user to see how people used your site and interacted with your content.

3. There are No Goals in GA4

If you had set up different goals in Universal Analytics, then you won’t find them in GA4. However, you get various GA4 events to help you track user interactions on your website.

Events to enable in ga4

For example the number of users who began the checkout process in your online store is an interaction event. You can also see events for anyone who reached different points in the checkout process.

That way, you can see which specific steps in the process people give up at.

4. Absence of Form Conversion Tracking

Tracking your WordPress forms is important in understanding how people use your website. Forms help gather leads, get user feedback, resolve queries, and more.

However, you won’t know which form performs best without tracking them in Google Analytics. With MonsterInsights, you can easily track forms out of the box and see a report inside your WordPress dashboard.

Forms report

For even more control over the forms on your site, we recommend installing WPForms, the best form builder plugin for WordPress. It integrates with MonsterInsights, too, so you can get even more useful information out of Google Analytics.

5. Perform Advanced Analysis to Uncover Insights

One of the most powerful changes GA4 brings is the ability to perform advanced analysis and create multiple data visualizations.

You can head to the Explore tab and create custom reports. There are prebuilt templates you can use or use a blank template.

Explorations tab in ga4

For example, you can perform a funnel analysis and see the steps customers take before purchasing. Similarly, the path exploration template helps you see which events users trigger as they visit your website.

However, this feature is for advanced or power users who are experienced with Google Analytics 4 and know their way around. It can be tricky for beginners since there is a steep learning curve.

As an alternate, you can use MonsterInsights to add a stats dashboard inside your WordPress site and see data that matters for your business.

How to Use Google Analytics 4 Reports

Now that you know what Google Analytics 4 is, how it works, and what’s the difference between GA4 and Universal Analytics, let’s see how to use different reports.

Realtime Report

The first report you can view is the real-time report in Google Analytics 4. It helps you monitor your website activity as it happens.

You can use the report to see if your analytics tracking code is working, track the performance of a campaign like a flash sale in real-time, see traffic from social media campaigns as it happens, and more.

Realtime report in GA4

If you’re using MonsterInsights, then you can quickly see the real-time reports inside your WordPress dashboard. You just need to go to Insights » Reports in your admin panel, and then just click on the ‘Realtime’ tab.

The plugin brings important data from Google Analytics and displays them in easy-to-understand reports. This way, you can quickly see data that matters for your business and check how your site performs.

Realtime report

For more details, please see our guide on how to show real-time online users in WordPress.

Acquisition Report

The acquisition report is part of GA4’s ‘Life cycle’ reports, and you’ll see where your visitors are coming from. It shows the channels that are driving traffic to your website.

For example, you can see whether people use search engines like Google and Bing, directly typing in your website URL in the browser, clicking on paid search ads, and more.

Acquisition report in ga4

Using this report, you can figure out which channels to invest your resources in and get the maximum result. It also helps optimize your WordPress SEO and increase organic traffic to your website.

Engagement Report

The engagement report is a new report you’ll see in Google Analytics 4. It helps you track how many people are engaged with your website.

Under this report, you’ll find more sub-reports to track different events and conversions, as well as see your most important pages and app screens.

Engagement report in ga4

These reports are important in understanding how people use your website. For example, you can see which page is getting the most views. Using the data, you can create similar content to get more website traffic.

Monetization Report

If you run an eCommerce store, then you can view its performance in the Monetization report.

For instance, this report shows the total revenue, purchases, average purchase revenue per user, and other metrics.

Monetization report

You can also see the eCommerce purchases report to find out which products get the most sales in your store.

With MonsterInsights, you can easily see your top products inside your WordPress admin panel. Its eCommerce report shows an overview of your store’s performance along with the best-selling products.

MonsterInsights ecommerce report example

Using this information, you can display your popular products throughout the website, upsell other products, and offer bundles and discounts to boost sales.

For more details, please see our guide on how to set up eCommerce tracking in WordPress.

Retention Report

A retention report helps track how many new users visit your site compared to returning users.

You can use this data to bring back users to your site by getting them to sign up for your newsletter or follow you on social media. On the other hand, you can offer exclusive discounts or free resources like ebooks for returning visitors to get more conversions.

Retention report in ga4

In the retention report, you can also see graphs for user engagement and user retention over time, lifetime value, and more.

Demographics Report

Under the User section of GA4, you will find your demographics data, where you can see which country your visitors are coming from.

This helps create geolocation marketing campaigns and personalized messages for users from different locations. For example, you can offer exclusive discounts for people coming from Singapore or come up with blog topics for users from India.

Demographics report

It even breaks down the language your users speak, so you can translate your website into the most popular languages.

With MonsterInsights, you can also view this data inside your WordPress dashboard. Plus, it also shows a device breakdown, top referrals, top countries, and new vs. returning visitors reports.

Device breakdown and top countries report

Tech Report

The last report you’ll see in Google Analytics 4 is the Tech report. It shows the device your visitors use to view your website, such as whether they are on desktop, mobile, or tablet.

Besides that, you can also see the operating system, browser, screen resolution, and app version people are using when visiting your site.

Tech report in ga4

This report is especially useful when optimizing your site for multiple devices. You can provide a better user experience and ensure that people can easily read your content on any device.

We hope this article helped you learn about Google Analytics 4 in WordPress. You can also see our guide on how to increase your website traffic, and the must have WordPress plugins to grow your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post The Ultimate Guide to GA4 in WordPress for Beginners first appeared on WPBeginner.

How to Block WordPress Referrer Spam in Google Analytics

Do you want to block WordPress referrer spam in Google Analytics?

Referrer spam sends misleading data to your website to pollute your website’s analytics reports with spam links.

In this article, we’ll show you how to block WordPress referrer spam in Google Analytics effectively.

Blocking WordPress referrer spam in Google Analytics

What is Referrer Spam in WordPress and How Does It Affect Google Analytics?

Referrer spam in WordPress is a common spamming technique where fake traffic data is sent to a WordPress website.

This spam technique aims to pollute a website’s analytics data with spam URLs, keywords, and domain names.

It affects your Google Analytics reports as this data appears under Referral data and may affect your website’s overall page views, bounce rates, and session reports.

Referral spam in Google Analytics

If you are seeing many suspicious-looking domains in your Referral reports, then they are most likely spam referrers.

Blocking these spam referrals will improve your Google Analytics reports and ensure that your data is not polluted by spam requests.

That being said, let’s take a look at how to easily block referrer spam in Google Analytics on a WordPress website.

Note: If you’re new and haven’t setup Google analytics properly, then we recommend using our guide on how to install Google Analytics in WordPress.

Block Referrer Spam in Google Analytics with Sucuri

This is the easiest way to block the most common referrer spam in Google Analytics.

For this you’ll need Sucuri. It is the best WordPress security plugin and comes with the best website firewall on the market.

It blocks most common website threats including referrer spam before they even reach your website.

Sucuri

Sucuri also comes with website monitoring, malware scanner, integrity check, and dozens of security features. This protects your website against hacking, malware, and brute force attacks.

Manually Blocking Referrer Spam in Google Analytics With a Plugin

If you are not using Sucuri, then you can use this method to check referral traffic and block them.

First, you need to install and activate the Stop Referrer Spam plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Settings » Referral Spam page to review plugin settings.

Block referrer spam plugin settings

The plugin uses a referral spam blacklist published by Matomo (Formerly Piwik, an open source analytics software).

You can also enter any suspicious domains that are already spamming your Google Analytics reports.

Don’t forget to click on the Save button to store your settings.

Be careful when adding domains in the plugin settings, as it will block all traffic from that domain name, including sub-domains.

3. Filter Out Ghost Referrers in Google Analytics

The first two techniques mentioned above will block referrer traffic that arrives at your website.

However, spammers may sometimes not send referral requests to your website. Instead, they would target your Google Analytics tracking code to trick it into recording a spam request.

These attempts will bypass filters on your website and may still appear in your Google Analytics reports.

You can filter these ghost referral spam in your Google Analytics account.

1. Block Unwanted Referrals in GA4

If your website is using Google Analytics 4 (GA4), then you can use the following method to remove unwanted referrals.

Simply log in to your Google Analytics dashboard and switch to the Admin view.

Select data stream

From here, under the Property column, select the Data Streams option. This will bring the Data Streams connected to your Google Analytics property.

After selecting your data stream you’ll see different settings. Simply scroll down to the Advanced Settings section and then click on the ‘More Tagging Settings’ tab.

Advanced Tagging Settings

Next, click on the ‘List Unwanted Referrals tab.

List unwanted referrals

This will bring you to the configuration screen.

Under Match Type, choose ‘Referral domain contains’, and then add the domain you want to block next to it.

Block domains

Click on the Add condition button to add another domain if needed.

Once finished, click on the Save button at the top right corner of the screen to save your settings.

Google Analytics will now exclude these referrals from your reports.

2. Block Unwanted Referrers in Older Google Analytics

If you are still using older Google Analytics account that uses the Universal Analytics (UA Tracking) code, then you can use this method.

Simply switch to the Admin view under your Google Analytics account.

Creating a filter in Google Analytics

From here, you need to click on the Filters option under the ‘View’ column.

This will bring up the Filters screen. Go ahead and click on the Add Filter button.

Add filter button

On the next screen, you can configure your filter settings.

First, you need to switch the Filter Type to ‘Custom’ and choose the ‘Exclude’ method.

Filter spam referrers from Google Analytics reports

After that, click on the ‘Filter Field’ drop-down and select the ‘Campaign Source’ option (this is where your filter will look for the match).

Lastly, add the domains that you want to block under the Filter pattern box in the following Regex Expression format.

spamwebsite\.com|more-spam\.com|.*spammysubdomain\.com

Notice how the domain name and extension are separated by a backslash and a dot (\.), and each domain name is separated by a pipe sign (|).

The last domain in the list has a dot and asterisk (.*) before the domain name. This asterisk blocks not only the domain name but also all its subdomains.

Go ahead and click on the Save button to store your filter settings.

Google Analytics will now remove these spam referrers from your reports.

Filters don’t affect on how Google Analytics collects data on your website. They just customize reports you view in your Google Analytics dashboard.

If you need to, you can always return to the filters screen to edit or delete a filter.

Edit or delete a filter in Google Analytics

We hope this article helped you learn how to block referrer spam in Google Analytics effectively. You may also want to see our ultimate conversion tracking guide for beginners or how to properly setup eCommerce tracking on your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Block WordPress Referrer Spam in Google Analytics first appeared on WPBeginner.

How to Switch to Google Analytics 4 in WordPress (The RIGHT Way)

Are you looking to switch to the latest Google Analytics version?

Google is now recommending website owners to move to the new Google Analytics 4 because they will be sunsetting the previous Universal Analytics on July 1, 2023. After the sunset day, you won’t be able to track data in the older version.

In this article, we’ll show you how to easily switch to Google Analytics 4 in WordPress.

Switch to Google Analytics 4 in WordPress

Why Switch to Google Analytics 4?

Google Analytics 4 (GA4) is the latest version of Google Analytics. It lets you track your mobile apps and websites in the same account, and offers new metrics, reports, and tracking features.

If you haven’t created a GA4 property yet, then now is the best time to switch to the latest version. That’s because Google announced that it will be closing down the old Universal Analytics on July 1, 2023.

What this means is that Universal Analytics will no longer receive data from your WordPress website, and it will eventually stop working after the sunset date. That means that all your old analytics data will be lost.

Switching to Google Analytics 4 as soon as possible will protect you from starting from scratch with no historical data.

To do this right, a lot of smart website owners are using the dual tracking method which allows you to continue using the current Universal Analytics while start sending data to GA4.

This way, you can future-proof your data while giving yourself plenty of time to learn the new Google Analytics dashboard and features.

That being said, let’s see how you can switch to Google Analytics 4 in WordPress with dual tracking.

Creating a Google Analytics 4 Property

If you already have an existing Google Analytics account using the old version, then you can eaily create a new GA4 property and start sending stats to GA4.

First, you’ll need to visit the Google Analytics website and login to your account.

After that, head over to the ‘Admin’ settings page in the bottom left corner.

Click admin settings

If you’re on classic Google analytics, then you’ll see the option to setup GA4.

Go ahead and click on ‘GA4 Setup Assistant’ under the Property column.

Click on GA4 setup assistant

In the next step, the setup assistant will give you 2 options. You can create a new Google Analytics 4 property or connect an existing one.

Since we’re setting up a new property, simply click the Get Started button under the ‘I want to create a new Google Analytics 4 property’ option.

Create a new GA4 property

A popup will now appear with the details about the setup wizard.

If you’ve implemented your Universal Analytics using the Global Site Tag (gtag.js) code, then you’ll see an option to Enable data collection using existing tags.

This uses the existing tracking code on your site to collect information. That said, if you don’t already have the right tracking code on your website, we’ll show you how to add it to your WordPress blog below.

For now, you can go ahead and click the ‘Create property’ button.

Click the create property button

The setup wizard will add a new GA4 property and copy the Universal Analytics property name, website URL, timezone, and currency settings.

You can now view your new Google Analytics 4 property in the GA4 Setup Assistant.

View your connected property

Next, you’ll need to click on the ‘See your GA4 property’ button to see your Google Analytics tracking code.

After clicking on the button, simply click on the ‘Tag installation’ option to retrieve your tracking code.

Go to tag installation

You should now see your new GA4 property under Data Streams.

Go ahead and click on your new property.

Select your data stream

A new window will slide in from the right, and you’ll be able to see your web stream details.

Note: Google Analytics 4 uses both ‘data stream’ and ‘web stream’. These both simply mean the flow of analytics data that Google Analytics receives from your website.

Simply scroll down to Tagging Instructions section and click the Global site tag (gtag.js) option to expand the settings. You’ll now see your Google Analytics tracking code that needs to be added to your WordPress site.

See web stream details

One thing you need to know is that Google Analytics 4 reports are quite different than what you’re used to in Universal Analytics.

They have introduced new terminology, and many familiar metrics and reports are missing completely. Basically if you were using common reports like the Top Landing Pages report or others, then you’d have to recreate those from scratch in Google Analytics 4.

That’s why we recommend using MonsterInsights Pro or even the free version of MonsterInsights.

It will help you see all the familiar analytics reports right in your WordPress dashboard, and it also lets you use both Universal Analytics and Google Analytics 4 at the same time.

Not to mention, with MonsterInsights you get all the powerful tracking features such as outbound link tracking, author tracking, and more which can be enabled without writing any code.

Let’s take a look at how to easily set up Google Analytics 4 on your WordPress site with MonsterInsights.

Adding Google Analytics Tracking Code to WordPress Site

The best way to add Google Analytics tracking code to your WordPress website is by using MonsterInsights. This is the plugin that we use on WPBeginner.

MonsterInsights is the best Analytics solution for WordPress, and it’s trusted by over 3 million websites because it lets you easily setup advanced tracking without any coding skills.

You can use the MonsterInsights Lite version to set up Google Analytics in no time. There are also premium MonsterInsights plans that offer more features like custom dashboard reports, email summaries, scroll tracking, eCommerce tracking, premium integrations, and more.

MonsterInsights also offers dual tracking, meaning you can use both Universal Analytics and Google Analytics 4 at the same time. This is available in both the free version as well paid, and we highly recommend using this to ensure that your transition to GA4 goes smoothly.

First, you’ll need to install and activate the MonsterInsights plugin. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you’ll be taken to the MonsterInsights welcome screen in your WordPress dashboard. Simply click the ‘Launch the Wizard’ button to add Google Analytics to your site.

Launch setup wizard

After clicking the button, the setup wizard will ask you to choose a category that best describes your website.

You can choose from a business website, publisher (blog), or online store. Once you’ve selected a category, click the ‘Save and Continue’ button.

The MonsterInsights setup wizard

In the next step, you’ll need to connect MonsterInsights with your WordPress site.

Go ahead and click the ‘Connect MonsterInsights’ button.

Connect MonsterInsights with your site

Once you click the button, you’ll need to sign in to your Google Account.

Simply select your account and click the ‘Next’ button.

Choose Google account to sign in

Next, MonsterInsights will require access to your Google Analytics Account.

MonsterInsights App needs these permissions, so it can help you setup analytics properly and show you all the relevant stats right inside your WordPress dashboard.

You can click the ‘Allow’ button to continue.

Allow access to your Google account

After that, you’ll be redirected back to the MonsterInsights setup wizard.

To complete the connection, select your Google Analytics 4 property from the dropdown menu and click the ‘Complete Connection’ button.

Select your GA4 property

Next, MonsterInsights will connect Google Analytics with your WordPress website.

On the next screen, you’ll see some recommended settings like file download tracking and affiliate link tracking.

You can use the default settings in the setup wizard. However, if you’re using an affiliate link plugin, then you’ll need to enter the path you use to cloak the affiliate links.

Recommended settings

Next, you can scroll down and select who can see reports and add different WordPress user roles.

Once you’re done, click the ‘Save and continue’ button.

Who can see the reports

After that, MonsterInsights will show different tracking features that you can enable for your website.

You can scroll down and click the ‘Skip for Now’ button.

Choose which tracking features to enable

Next, you’ll see a checklist showing that you’ve successfully connected Google Analytics to your website.

For example, it will show that you’re successfully connected to Google Analytics, the tracking code is properly installed, and the data is being collected.

Tracking should be all setup

That’s it, you’ve added Google Analytics 4 property to your WordPress site.

Creating a Measurement Protocol API Secret

If you want to MonsterInsights to track eCommerce purchases, form conversions, and more advanced tracking in Google Analytics, then you’ll need to create a Measurement Protocol API Secret.

First, you’ll need to go back to your Google Analytics account and then go to Admin settings. Next, click on the ‘Data Streams’ option under Property column.

Go to admin and data stream settings

Then you’ll need to select the Google Analytics 4 property that we created earlier.

Go ahead and select your property under Data Streams.

Select your data stream

After that, you can scroll down to the ‘Advanced Settings’ section.

Simply click the ‘Measurement Protocol API secrets’ option.

Select measurement protocol API secrets option

A new window will now slide in with your Measurement Protocol API secrets.

You will have to click the ‘Create’ button.

Create an API key

After that, enter a nickname for your API secret so it’s easily identifiable.

When you’re done, click the ‘Create’ button.

Enter a name for your API

You should now see your Measurement Protocol API secret.

Simply copy the API secret under the ‘Secret value’ field.

Copy the secret value

After that, you can head back to your WordPress website and navigate to Insights » Settings from your dashboard.

Now click on the ‘General’ tab at the top.

General settings tab in MonsterInsights

Next, you will have to scroll down to the ‘Google Authentication’ section.

Go ahead and enter the Secret value you just copied in the Measurement Protocol API Secret field.

Enter measurement protocol API secret in MonsterInsights

You’ve successfully added Measurement Protocol API Secret in MonsterInsights.

Setting Up Universal Analytics Dual Tracking

Now that you have setup GA4, the next step is to enable dual tracking for Universal Analytics, so it can run alongside your Google Analytics 4 property in WordPress.

With MonsterInsights, you can easily set up dual tracking and simultaneously track both properties without writing code.

Note: If you already have Universal Analytics tracking code added to your WordPress website, then we recommend disabling it first. Otherwise, it could lead to double-tracking and can skew your data.

To start setting up dual tracking properly, you can head to Insights » Settings from your WordPress admin panel and then click on the ‘General’ tab.

General settings tab in MonsterInsights

Next, you’ll need to scroll down to the ‘Google Authentication’ section.

Now under the Dual Tracking Profile, enter your Universal Analytics (UA) code.

Enter your UA Code

You can easily find your UA code in Google Analytics Admin settings.

Simply go to the Admin settings page in Google Analytics of your Universal Analytics property.

Click admin settings

Then click on ‘Property Settings’ under the Property column.

You should see the Tracking Id, and it will look like this: UA-123856789-5

Find your tracking ID

You’ve now successfully set up dual tracking on your WordPress website.

To see how your website is performing, simply go to Insights » Reports. Here you’ll find all the data you need to make the right decisions to grow your website.

Dashboard reports

We hope this article helped you learn how to switch to Google Analytics 4 in WordPress. You may also want to see our ultimate WordPress SEO guide to improve your rankings, or see our comparison of the best email marketing services for small business.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Switch to Google Analytics 4 in WordPress (The RIGHT Way) first appeared on WPBeginner.

How to Enable Author Tracking in WordPress

Do you want to enable author tracking on your WordPress website?

If you run a multi-author WordPress site, then you’re probably wondering which of your authors write the most popular posts. This information can help you increase traffic and grow your website.

In this article, we’ll share how to enable author tracking in WordPress.

How to enable author tracking in WordPress

Why Enable Author Tracking in WordPress?

If you run a multi-author blog, then you need to enable author tracking in WordPress. It allows you to gather data about how each author’s posts perform on your WordPress website.

You can then promote high-performing authors and offer some extra help to those who are struggling.

It is also a great way to find out whose posts bring in the most traffic and which articles are engaging readers.

For instance, you might have an author who’s great at writing posts that get lots of visitors. However, those visitors may not stick around on your site. This may result in a high bounce rate, fewer page views, and less time spent on the website.

After gathering this data, you can make informed decisions by improving your editorial workflow and offering more tips and help to struggling writers. You might find a way to funnel users from the first author’s posts to the writers you want to get more attention.

That said, let’s see how you can enable author tracking on your website.

Setting up Author Tracking in WordPress

The easiest way to track the most popular authors in WordPress is using MonsterInsights. It is the best Analytics plugin for WordPress and helps you set up Google Analytics without editing code.

MonsterInsights

MonsterInsights offers a Dimensions addon that allows you to set up custom dimensions in Google Analytics.

It helps you track additional information in Google Analytics that’s not available by default. This includes author tracking, most popular post types, categories, tags, and more.

Do note that you’ll need at least the MonsterInsights Pro plan because it includes the custom dimensions feature. There is also a MonsterInsights Lite version you can use for free.

First, you need to install and activate the MonsterInsights plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you will see the welcome screen. Go ahead and click the ‘Launch the Wizard’ button.

Launch setup wizard

Next, you can follow the instructions in the setup wizard to connect Google Analytics with your website. For more details, please see our guide on how to install Google Analytics in WordPress.

Once connected, Google Analytics will start tracking all your website traffic.

With MonsterInsights, you can easily set up dual tracking and start collecting data in a Google Analytics 4 (GA4) property. GA4 is the latest analytics version, and it will replace Universal Analytics on July 1, 2023.

After this date, you won’t be able to track website traffic in your Universal Analytics property. That’s why this is the best time to switch to Google Analytics 4.

Setting up Author Custom Dimensions for Accurate Tracking

Now that everything is up and running, let’s tell Google Analytics to start tracking authors by adding a custom dimension.

You need to start by visiting the Insights » Addons page. From here, you need to go to the ‘Dimensions’ addon and click on the ‘Install’ button.

Activate the dimensions addon

The addon will now automatically install and activate.

Next, you can go to the Insights » Settings page and switch to the ‘Conversions’ tab.

MonsterInsights settings - conversions tab

From here, simply scroll down a little, and you’ll see the ‘Custom Dimensions’ box.

This is where you can add a new custom dimension. Go ahead and click on the ‘Add New Custom Dimension’ button.

Add new custom dimension

Next, you’ll need to select the ‘Author’ dimension from the drop-down menu.

Besides that, you will also need to add the ID that will be filled in for you.

Select Author in the dropdown menu

Don’t forget to click the to store your settings.

Now that you have set up custom dimensions in MonsterInsights, the next step is to do the same in Google Analytics.

We’ll go through the steps for Universal Analytics and Google Analytics 4.

Add Custom Dimensions in Universal Analytics

First, you can visit the Google Analytics website and open your website property. Do be sure that the ID for this property begins with ‘UA.’

Choose a website property

From here, you need to click on the ‘Admin’ button at the bottom left corner of the screen.

Then you can select Custom Definitions » Custom Dimensions under the Property column.

Choose custom dimensions

Next, you’ll need to add a new dimension.

Simply click the ‘+ New Custom Dimension’ button.

Click new custom dimension

On the next screen, type in ‘Author’ for the name and leave the other details unchanged.

After that, click the ‘Create’ button, and Google Analytics will save it.

Add author to dimension name

Next, you’ll see some code on the next screen.

You don’t need to do anything, as MonsterInsights handles everything for you. Just click ‘Done’ to continue.

Click the done button

Next, you will see your ‘Author’ custom dimension listed in a table with an ‘Index’ column.

Make sure that the value in the ‘Index’ column is the same as the ID given to that author’s custom dimension in MonsterInsights.

View your author dimension

If not, then don’t worry because you can edit the custom dimension in MonsterInsights.

Now, let’s see how you can set up custom dimensions in GA4.

Add Custom Dimension in Google Analytics 4

First, you will need to go to your Google Analytics 4 property.

Once logged in, head to the ‘Configure’ tab on the left.

Go to configure

Next, you can click the ‘Custom definitions’ option from the menu that appears.

After that, go ahead and click the ‘Create custom dimensions’ button.

Create a new custom dimension

A window will slide in from the right, where you will need to enter the details of your custom dimensions.

To start, enter a name for your dimension. There is also an option to add a description.

From here, you can keep the Scope set to ‘Event’ and then enter an event parameter like ‘author_tracking.’ The Event parameter is what Google Analytics 4 will use to show your dimension in the reports.

Enter dimension details in ga4

After entering these details, don’t forget to click the ‘Save’ button.

You have successfully set up author tracking on your WordPress website. Now, let’s get to the fun part of viewing the reports and finding out how your authors are doing.

Viewing Your Author Tracking Reports

After your website has collected traffic data, you can view your top authors on the WordPress dashboard.

Simply go to the Insights » Reports page and switch to the Dimensions tab.

View most popular author report

From here, you can see the top authors that generate the most traffic on your website.

You can now use this data to improve your editorial workflow and promote content from high-performing authors. For instance, you can display their content as popular posts and get more pageviews.

Additionally, the information will help you see which writers are struggling, so you can work with them and increase traffic to their blog posts.

We hope this article helped you learn how to enable author tracking in WordPress. You may also want to see our guide on how to start an online store and the must-have WordPress plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Enable Author Tracking in WordPress first appeared on WPBeginner.