How to Add Google Analytics to WordPress Website?

How to Add Google Analytics to WordPress Website?

Do you want to know how to add Google Analytics to WordPress Website? It’s effortless. I will share with you step by step procedures to add google analytics in simple steps. If you want to start or grow your blog, read this blog.

Are you ready?

Let’s get started.

3 Easy Steps to Add Google Analytics to WordPress Website Without Using Any Plugin

Follow these steps to add Google analytics to your WordPress website. It’s very easy you just have to read and apply.

Step 1: 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.

Step 2: Get Google Analytics Tracking Code

Follow the 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 the create option.
  • You will find “Tracking code, “copy it.

Step 3: Log in to WordPress Website & Paste Tracking Code

The next step involves pasting the tracking code at your WordPress websites section to track the website activity of your website.

Follow the below-mentioned steps to log in to your WordPress website:

READ also  How to Protect Your Blog with Legal Pages
  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 the “Theme Header” option, which is also known as header.php
  5. Paste the tracking code copied earlier in between sections.
  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 to your WordPress Website.

Now I will come up with a new post tomorrow on How to add your website to Google Search Console.

Sally Ng

Sally Ng

I spend most of my time in Bali. Here, you will learn the basics of blogging and how to earn money living freely. Your escape from 9 to 5 work truly.

I created this blog, or you can say a community of bloggers, entrepreneurs, and everyone who is striving to find their professional identity in this crisis. I believe in sharing, and thus, I am sharing my knowledge on how to start, scale, and monetize a blog or an online business. If you want to start your blog, website, or an online business, become part of this growing community of 1000+ bloggers and entrepreneurs.


This post may contain affiliate links. Meaning, I get a commission if you purchase through my links, at no cost to you. Read the full disclaimer here.