How to Add Google Analytics to WordPress Website?

Ayesha Siddiqua

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

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:

How to Add Google Analytics to WordPress Website
  • 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:

  1. Access the login page of your website. Usually, the URL to login to any WordPress website by default is
  2. Navigate to the Appearance section at the left menu of the website.
  3. Click on the “Theme Editor” option.
  4. Navigate to “Theme Header” option which is also known as header.php
  5. Paste the tracking code copied earlier in between <head> </head> section.
  6. Click on the “Update File” option at the bottom.

That’s it.

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.

Ayesha Siddiqua

Ayesha Siddiqua

Ayesha is a passionate blogger, digital marketing professional & tech enthusiast. She puts an exceptional effort to research and turn it into helpful tips to answer her readers’ queries.

11 thoughts on “How to Add Google Analytics to WordPress Website?”

  1. Pingback: How to add your website to Google Search Console - Blogging Filter

    1. You can also track your ‘Free WordPress Blog’ by using Google Analytics. Firstly, you need to get the tracking code from the Google Analytics and the steps is mentioned in the post. After that simply, paste the code inside the header section of your theme. However, if you are planning to monetize your blog or if you want to brand yourself it’s better to buy a domain & hosting. You can read my blog on how to start a profitable blog in 2020.

      1. You actually got the nerve.
        I want to buy my site, not to monetize only but to own it too. As it has good SEO that it appears on top from anywhere.

        Can you please help me with how can O buy and still not loose anything from the blog?

  2. Pingback: How to Start Freelancing: Earn Money Online from Home Without Investment - Blogging Filter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to our Newsletter

Get access to the library of freebies. You will find various resources to grow your blog.

Scroll to Top

Subscribe & Own it now

%d bloggers like this: