How to install Google Analytics 4 on WordPress?

Tracking website activity and displaying the results of various events can improve the user experience or conversion rate of an e-commerce website. Site activity data can be used for other purposes, but it must be collected before it can be analyzed. For this purpose, Google has developed a tool called “Google Analytics” that collects data about events that take place on the website or application. The collected data can then be analyzed directly on the tool’s dashboard. Google Analytics is a very powerful analysis and data collection tool that can be installed on any type of website. In this tutorial, we will explain the steps to follow to install Google Analytics 4 on your website.

Create a Google account

Before using Google Analytics, you need to create a Google Account if you don’t already have one, or decide which Google Account you want to use with Analytics if you have multiple Google Accounts. A Google Account is used on Android phones and to access tools such as YouTube, Google Drive, Google Docs and Google Meet.

You do not need to create a Gmail account to access Google services. When creating a Google Account, you can select the “Use my current email address instead” option to associate an email address with your Google Account. You can use an email address from your domain name or an address from another email provider such as hotmail.com or aol.com. Note that your Google Account password will be different from your email password (unless you decide to use the same password for both).

  Steps to follow to install WordPress

Create a Google analytics account

Go to the official Google Analytics website and click on “Start measuring”. Enter an account name. For example, it can be your first and last name or your company name. Do not enter your website name here, as the same account should be able to manage multiple websites (multiple properties). In the next step, you can enter a name for the website property. For example “La Webeuse” (instead of the site URL). Don’t forget to enter the country and time zone. Then fill in the other information requested. Finally, accept the terms of use.

Create the data feed

Once you have accepted the terms of use, you will be directly redirected to the data feed page of the asset you just created. If you need to return to this page, click on the gear icon at the bottom of the screen, then under the Properties column, make sure the correct property is selected, then click on the Data Feed link. Click on the Web button after Select Platform. Before clicking Create Feed, you will need to provide your site URL and name your feed.

Before you click on create a feed, take a look at the enhanced metrics section as it lists some of the cool features of GA4.

In addition to measuring standard page views, the enhanced metric allows you to automatically track page scrolls, outbound clicks, site searches, video interactions and file downloads. These will appear as events in GA4 and will be taken into account when measuring user engagement.

  Plug-ins to install on your WordPress blog

Installing Google Analytics on WordPress using a plug-in

Now that you have a Google Analytics account, you have created an asset feed, but it’s not done yet! You need to insert gstag.js in the<head> section for your WordPress site, you can do this in several ways:

  • Using MonsterInsights: MonsterInsight is a freemium extension available in the official WordPress directory. This means you can find it directly on your site in the Extensions > Add tab.
  • Using SEOPress: In WordPress, go to SEO > Analytics & Analytics > Google Analytics.
  • Using third-party extensions: This is an extension that allows you to add scripts to the<head> WordPress sections.

Leave a Comment

by

by

Article published on

by

Article published on

by