If you are a beginner in the blogging field then you are in the right place. In this guide, I am going to show you the complete method of how to connect google analytics to WordPress website. This is the latest method to connect google analytics to wordpress website. We all know the process of adding a website to google analytics is changed in 2021.
As google analytics dashboard is completely changed. So the method is different now. But don’t worry It is still easy. Google Analytics is used to display the stats of a website that is connected to it. It covers the traffic sources, traffic countries, real-time active users, engagements, sessions, and many more.
Quick Steps: Add Google Analytics to WordPress Website 2021:
Step 1: Sign up for a Google Analytics account.
Step 2: Click Start Measuring.
Step 3: Enter your website details.
Step 4: Accept the following permissions.
Step 5: Now Add your website Url. After creating stream copy google tag manager code.
Step 6: Open the WordPress dashboard. Appereance>Theme editor>Locate header.php
Step 7: Paste the copied code under <head> tag. Update the settings.
How to Connect Google Analytics to WordPress Website Without Plugin.
The easiest method is to add a website to google analytics manually. In this method, we will not use any plugin because plugins are not good for your website’s health. So we will do it manually. Follow my steps to add a website to analytics without a plugin. Must check out how to get Google AdSense approval on your blog.
Sign Up For A Google Analytics Account.
It is totally free to sign up for a google analytics account. You just need to visit https://analytics.google.com/ and click start measuring.
Adding Property in Google Analytics:
Enter your Account Name (Website Name). Check the below options and continue.
Add Your Property Details:
In this step, you have to add the name of your website as the Property name, Reporting time, and select the currency (I recommend selecting USD.)
This will help you produce reports according to your time zone and currency, which can support you take rightful business decisions.
Enter Your Business Details:
Here you have to select the number of employees you have. You can select according to your team. Below you have can select the features you want to add in your analytics account. I will recommend selecting all and Click create.
Now you have to select your country again here and Click on I accept. Now move forward.
Setting Up Stream:
Here you need to add your website URL and Enter the stream name. The stream name is your website name. So add your website name in stream name.
Copy The Tracking Code From Google Analytics Dashoboard.
Copy the google site tag code from your google analytics dashboard.
Open WordPress Dashboard and go to Appearance>Theme Editor.
We are close to connecting google analytics to the wordpress website. Now Go to your wordpress dashboard. Click on the Appearance section. Select theme editor.
Locate header.php in the right side of the theme editor.
Select header.php from theme editor.
Now Paste your Code under the <head> tag.