How to Install Google Analytics on WordPress? (3 Methods)
If you are a newbie blogger, you would probably check out your website’s stats in your WordPress dashboard or any other Blogging platform.
But have you ever thought about how accurate your WordPress dashboard results are?
The WordPress dashboard shows stats far better than Blogger stats. But, in this busy online marketing era, accuracy is so important. Hence, we must install Google Analytics – the Best site Analytics Tool.
What is Google Analytics?
Google Analytics is a free site analytics tool from Google. It allows you to track and analyze your website’s performance. With Google Analytics, you can analyze so many things on your website like:
- Where is your audience from?
- Where did your audience land?
- Which page on your website gets a lot of traffic?
- Which page do you readers dislike and often click the back button on?
And so many.
How does Google Analytics work?
Google Analytics will offer you a piece of javascript code called Google Analytics tracking code. You will be placing this code on your website. Every time your page loads up, this code will also load up. Hence, Google analytics will be tracking it. And this is how Google Analytics works.
To measure all these performances of your audience on your website, you first need to integrate Google Analytics.
This Google Analytics tutorial shows how to integrate Google Analytics on a website.
Google Analytics Tutorial for beginners:
There are a few methods of integrating Google Analytics into your website. I will be explaining the most straightforward approach.
Step 1:
First, you need to log onto your Google Analytics account. To log in to Google Analytics, you need a Gmail account. If you don’t have one, you can create it here.
Step 2:
Once you log in to your Google Analytics account, you need to click the Admin tab in the Analytics dashboard.
Step 3:
Click “Create New Account.” In the following screenshot, I already have one.
Step 4:
Enter the details of your website in the form. Once you have finished entering those details, you need to click “Get Tracking ID.”
Step 5:
You will now be provided with a piece of code. You must add this Google Analytics tracking code to your website’s header.
How to Install Google Analytics on WordPress?
We will look into different methods of installing Google Analytics on WordPress one after the other.
Method 1: Embedding the Code to your Header
If your theme can add code to the header, you can use that feature and add that code to your header.
You can use this simple Custom CSS and JS plugin if your theme doesn’t support it.
Once you have installed this plugin, choose Custom CSS & JS -> Add Custom Js in your WordPress dashboard sidebar.
Give a title to that page, like Google Analytics Code, for future reference, paste this code, and click “Publish.”
Ensure this code loads up in the header and not in the footer.
Method 2: Using MonsterInsights Plugin
MonsterInsights Plugin is a dedicated plugin to integrate your Google Analytics account with your WordPress site. Apart from integrating, there are many other benefits of using the MonsterInsights Plugin. You can find out the other features of this plugin in our MonsterInsights Review.
For this step, you must install and activate MonsterInsights Lite Plugin from the WordPress repository.
And then, from your WordPress sidebar, choose MonsterInsights -> Settings and head over to General Settings. Here you will find the section named Google Authentication.
Here you have two options. You can use Connect MonsterInsights to connect this plugin with Google Analytics or copy and paste the UA code just like in the previous method.
Just proceed with whatever method you find comfortable!
Conclusion:
I hope you would have liked this tutorial and installed Google Analytics on your website. Comment below if you need more help installing Google Analytics on your website.
About the Author
Did you find the article useful?
Then pin me to your Pinterest Board, so that more people will find me
(Remember: The more you give to the Universe, the more you will get from the Universe)
So, Pin meEnter your Email Address below and be the FIRST to receive our Blogging Tips.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Dev Patel says
Google analytics is a great tool to have a track on your growth of your business. Thanks for the methods to install it on wordpress it has proved to be really useful.
BlogHeist says
Hey Dev!
It’s great to know you liked from our post.
Keep checking for more
Should you’ve any questions, please don’t hesitate to get in touch:
https://blogheist.com/contact-us/