Have you just started your new blog like me? Do you want to add Google Analytics to your WordPress website?
You should be.
Because Google Analytics is a crucial & must-have web analytics tool, and as the name implies, service is offered by Google for free of cost. It will help you to track your website traffic & other stats.
Today is my second day at this new blog, that’s why I thought let’s keep posting whatever I am adding/editing.
Today, I am going to add Google analytics to Blogging Filter to keep updates of all the traffic and stats.
Now let’s have a look at how to add google analytics to the WordPress website?
Steps to Add Google Analytics to WordPress Website Without Using Any Plugin
Log In to Google Analytics
The first step is to log in to your Google Analytics. You can use this link to access it directly. After that, you will be navigated to the dashboard.
Get Google Analytics Tracking Code
Follow below-mentioned steps to copy tracking code from Google analytics:
- Click on the “admin” option at the bottom left side of the dashboard.
- Click on the “Create Property” option.
- After that, you will see several options. Check the Web option & click on the continue button at the bottom of the page.
- You will be navigated to the “Create a property” option, where you have to mention website name, URL, industry category & time zone.
- Click on create option.
- You will find “Tracking code, “copy it.
Log in to WordPress Website & Paste Tracking Code
The next step involves pasting the tracking code at your WordPress website’s <head> section to track the website activity of your website.
Follow below-mentioned steps to log in to your WordPress website:
- Access the login page of your website. Usually, the URL to login to any WordPress website by default is yourwebsiteurl.com/wp-admin.
- Navigate to the Appearance section at the left menu of the website.
- Click on the “Theme Editor” option.
- Navigate to “Theme Header” option which is also known as header.php
- Paste the tracking code copied earlier in between <head> </head> section.
- Click on the “Update File” option at the bottom.
How to test whether you have followed the steps rightly & integrated Google analytics at your website successfully?
Simply open your website in Incognito mode & head over to your Google Analytics dashboard. Click on Realtime Overview & you will find one active user.
If you can see active users, it means you have successfully added tracking code at your WordPress Website.
Now I will come up with a new post tomorrow on How to add your website to Google Search Console.
Do let me know your views in the comment section.