The Er.Silent Boy!

How to Install Google Analytics on WordPress

Intro:- How to Install Google Analytics on WordPress? Google Analytics is a free web analytics service offered by Google. It helps website and app owners (both organizations and individuals) track and report on all kinds of data from their users. Google purchased the web statistics analysis company Urchin in 2005, forming Google Analytics shortly after.

WordPress is a content management system(CMS) that allows you to host and build websites. WordPress contains plugin architecture and a template system, so you can customize any website to fit your business, blog, portfolio, or online store.

how to install google analytics on wordpress

Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business.

About:- WordPress is a free and open-source content management system written in hypertext preprocessor language and paired with a MySQL or MariaDB database with supported HTTPS. Features include a plugin architecture and a template system, referred to within WordPress as “Themes”.

Analytics is the discovery, interpretation, and communication of meaningful patterns in data. Especially valuable in areas rich with recorded information, analytics relies on the simultaneous application of statistics, computer programming, and operations research to quantify performance.

 How to Install Google Analytics on WordPress? If you are reading this article that means you want to know about “How to Install Google Analytics on WordPress”, right? But, you don’t have any idea how or where to start. If you are looking for an easy guide on how to Install Google Analytics on WordPress, then you are at the right place. Just you have to read this article properly. In this article, I will show you a step-by-step tutorial on how to Install Google Analytics on WordPress. Even if you are a beginner there is no worry about it. The steps below are meant for both beginners & experts.

But before beginning to start a blog, there are some major concerns that you should know, like what is WordPress and What is Google Analytics. Let’s find it out.

1. What is WordPress?

WordPress-Logo

WordPress is a free and open-source content management system in PHP and paired with a MySQL or MariaDB database with supported HTTPS. Features include a plugin architecture and a template system, referred to within WordPress as Themes.

2. What is Google Analytics?

Google Analytics is a service provided by Google, which is extensively used to track the activities of users on websites. Google Analytics Services helps you to evaluate the visitors’ data on your website in-depth. Google Analytics is the main tool for traffic control in any aspect. Almost every piece of content you post online can be tracked in your dashboard and monitored there. The microscopically close view of each piece of content helps you to see the interaction, and determine what works and what does not. Robust search features and the ability to create queries also give you the ability to immerse your data online. So let’s get started.

How to Install Google Analytics on WordPress?

Video Tutorial!

Theory!

Google Analytics is available for free and all you need is a Google or Gmail account to sign up. The signup process is quite simple, follow the step-by-step instructions below to create your Google Analytics account.

Step 1: First you need to visit the Google Analytics website to sign up. When you’re on the website, simply click the “Get started today” button.

how to install google analytics on wordpress site

Next, you will be asked to log in with your Google account. If you already have a Google or Gmail account, then you can use that to sign in. Otherwise, you can go ahead and create a Google account for yourself.

how to install google analytics on WordPress site1

Step 2: Once you sign in with your Gmail account, you will be prompted to a welcome screen like the one below. This is where you will signup for Google analytics with your Gmail account. Go ahead and click the “Start measuring” button.

how to install google analytics on WordPress site2

After that, you will be asked to provide an account name. This name will be used internally so you can use anything like your business name. Google Analytics will also show multiple account data-sharing settings. These settings give you control over sharing your Google Analytics data. You can keep the default settings and move on to the next step.

how to install google analytics on WordPress site3

Step 3: On the next screen, you will need to create a Google Analytics property. Google introduced a new version of Analytics called Google Analytics 4 or GA4. It’s the latest version that tracks your website and mobile apps in the same account. Plus, you get new features, metrics, and a different interface for your reports.

Important Note: If you already have a Universal Analytics account, then it’s critical to start tracking data in Google Analytics 4 (GA4) as well. That’s because Google will sunset Universal Analytics on July 1, 2023. After the sunset date, Universal Analytics will not receive any data and will eventually stop working.

Setting up a Google Analytics 4 property after the sunset date will mean starting from scratch. However, you can start sending data into GA4 today while still using Universal Analytics. This way, you’ll have historical data in Google Analytics 4 for comparison and analytics when Universal Analytics closes.

To start, go ahead and enter a property name, and select your reporting time zone, and currency. Then click the “Next” button.

how to install google analytics on WordPress site4png

On the next screen, you’ll need to select an “Industry category” from the drop-down menu for your website and choose a “Business Size” from the given options.

how to install google analytics on WordPress site5png

Next, you’ll need to scroll down and select how you intend to use Google Analytics with your business, like measuring engagement, optimizing advertising costs, increasing conversions, and more. You can choose multiple options or all of the given options that meet your needs. When you’re done, simply click the “Create” button.

how to install google analytics on WordPress site6png

Once you click on the Create button, a popup window will open with the Google Analytics terms of service agreement. Simply click the checkbox for  ‘I also accept the Data Processing Terms as required by GDPR’ and then click the “I accept” button.

how to install google analytics on WordPress site7png

Next, you’ll see a popup with options on which communication emails you’d like to receive from Google Analytics. Simply click the checkbox for the updates you want to receive and then click the “Save” button.

how to install google analytics on WordPress site8png

Step 4: Now you will be presented with your Google Analytics Webs stream options. Since we’re setting up Google Analytics for a WordPress site, go ahead and select the “Web” as the platform.

how to install google analytics on WordPress site9png

After that, you’ll need to enter your website URL and Stream name. By default, Google Analytics will have an Enhanced measurement option enabled. This allows you to track page views, scrolls, outbound clicks, file downloads, and more in Google Analytics. 

Next, you can click the “Create stream” button.

how to install google analytics on WordPress site10png

You can now see your Stream URL, name, and Measurement ID. It will also show different enhanced measurements that it will record.

how to install google analytics on WordPress site11png

Google Analytics will also show different ways to add Google Analytics code to your WordPress website under the “Tagging Instructions” section. If you click the “Global site tag (gtag.js) option, you’ll see the Google Analytics tracking code.

how to install google analytics on WordPress site12png

You can copy this tracking code because you will need to enter it in your WordPress site depending on the method you use below. You can also simply leave this browser tab open and switch back to copy the code when needed. We suggest leaving the Analytics browser tab open as you may need to revisit it once you have installed the code on your WordPress site. 

Now that you have set up a Google Analytics account, let’s take a look at how to install Google Analytics in WordPress.

  • If you got this article helpful leave a comment below in the comment box. I will try to give you an answer. And Thanks for reading the Article!
The Er.Pramod Adhikari!

Authored By The Er. Pramod Adhikari!

The Blogger, Author & CEO’s The Infinity Company! B. Tech in CSE(Computer Science & Engineering) from Sambhram College, Bengaluru-560097, Working worldwide as Software(Web/App) Developer!