How to Setup Google Analytics on WordPress
Join Our Official Telegram and Youtube Channel. Telegram | Youtube

How to Setup Google Analytics on WordPress

How to Setup Google Analytics on WordPress

How to setup google analytics on WordPress? Do you want to learn how to install google analytics on WordPress? Then you are at the right place. Let's see how to set up google analytics in WordPress?

Table of Contents

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,
How to Setup Google Analytics on WordPress

In this article, we gonna show you the easiest way how to install google analytics on WordPress?

Google Analytics is the core product of Google that let you track your own website for free of cost. Then what is the use of google analytics?

By using google analytics you can track the number of visitors, page views, bounce rate, location of the viewer, age and much more of your website.

So let's see what are the steps to install google analytics code on blogger.

Step 1 - Sign up for Google Analytics

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

Here, first of all, you have to sign up on google analytics for creating an account. First, fill in your account name and then fill in your website name and enter your website URL like this https://xyz.com. 

Don't forget to change HTTP:// to HTTPS:// then after selecting your industry i.e. means which category relates to your website and finally add the time zone and submit.

Step 2 - Copy Google Analytics Tracking Code

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

Now, the second step is about getting your tracking code in google analytics. Then, you have to go to admin settings on the left sidebar as shown in the above image. Then click on the tracking code and you get the tracking code of google analytics. In this way, you can install google tag manager WordPress

Now, copy all the code as shown in the above image. Besides, this there is a google tag manager WordPress plugin available in add new plugin section. The best google analytics plugin for WordPress is Mosterinsights.

Step 3 - Paste the Code in Header Section

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

The third and most important step for installing google analytics in WordPress is very crucial and being aware that anything that goes wrong here will damage your site.

Then go to the theme file editor from your WordPress dashboard and find the header PHP in the right sidebar as shown below image.

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

In the right sidebar, you will find header.php. By clicking on this you will get the header section of your website. So, don't do anything wrong cause it will affect your site.

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

After clicking the header.php you will see the codes as shown in the above image. Then you need to find the header section (<head>) in that code. Plz, look at the image. 

And finally, place the google analytics tracking code right after the header tag (<head>) and click on the update file as shown in the above image.

And BOOM! you have successfully installed the google analytics code on your WordPress website. This is the simplest method to install google analytics code on WordPress. 

But, for those who don't want to use this coding method, I am providing the easiest method for installing google analytics code on WordPress by simply installing a plugin.

How to Install Google Analytics Code by Plugin

This is the second method for how to setup google analytics on WordPress? In this method, we will install google analytics code using a plugin viz. Header and Footer Plugin.

Step 1 - Download & Install Header and Footer Plugin

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,


Go to your WordPress dashboard and click on add new plugin. And search for Header and Footer Plugin then click on download then install it. After installing the following step 2.

Step 2 - Paste the Google Analytics Tracking Code into the Header

how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,


And follow the steps as shown in the above image.
Add snippet name - Analytics (e.g.)
Snippet type - Javascript
Location - Header
Device display - Show on all devices

Do these changes and do nothing.


how to setup google analytics, google analytics how to set up, how to create google analytics account, how to install google analytics, how to install google analytics on wordpress, how to setup google analytics on wordpress, how to set up a google analytics account, how to set up google analytics for website, google analytics how to install,

And finally, paste the google analytics code in the Snippet/Code area. 

And, BOOM! you have installed google analytics code in WordPress with the use of the plugin. This is the easiest way to install google analytics, isn't it? Do let me know in the comment section. 

Frequently Asked Questions

How do I set up Google Analytics on my WordPress site?

How to Add Google Analytics to WordPress Step 1: Download MonsterInsights. Step 2: Sign In to Google. Step 3: Create a Google Analytics Property. Step 4: Set Up MonsterInsights. Step 5: Set up Dual Tracking. Step 6: Create an API Secret for GA4. Step 7: Adjust Enhanced Measurement & Data Retention Settings.

Does WordPress allow Google Analytics?

Does WordPress allow Google Analytics? With WordPress, installing Google Analytics on your website is quick and easy. In just minutes, you can start collecting the information that you need to enhance user experience and increase conversions on your WordPress website.

How do I add Google Analytics to managed WordPress?

Add Google Analytics to WordPress with a plugin Sign in to WordPress. Install the plugin. Activate the plugin. Locate the new sub-menu in your main Settings menu labelled Insights, and click it. Click Settings under Insights. Click Authenticate with your Google Account. Click Next. Click Click to Get Google Code.

How do I activate Google Analytics for my website?

Add Analytics tracking On a computer, 1. open a classic Google Site. 2. Click Settings. 3. Manage the site. 4. Under "Statistics," click the Down arrow. 5. Use Universal Analytics. 6. In the text box, under "Analytics Web Property ID," enter a valid Analytics Property ID. 7. At the top, click Save.

Is Google Analytics always free?

Google Analytics gives you the tools, free of charge, to understand the customer journey and improve marketing ROI.

Conclusion

How to setup google analytics on WordPress? We have completely seen all the steps required for the installation of google analytics code on WordPress. Google Analytics is a must and useful for people who have a website.

Post a Comment