How to Add Google Analytics to WordPress without Plugin? [With Pictures]

Do you want to verify your website traffic stats? And don’t you want to analyze that from which country you’re website getting more traffic? For that are you looking to add Google Analytics to WordPress without plugin?

If yes, then this guide will help you to add Google Analytics to WordPress without plugin in simple steps.

Google Analytics blogkeep

As the webmaster, we need to understand our audience behavior, audience interests so that we can produce quality content for them.

For the better understanding of the audience, Google offering one free tool, its Google Analytics, but you need to add Google analytics to WordPress to analyze the user data.

In this article, I’ll help you to add Google analytics to WordPress without plugin, basically it’s very simple task, but first, you need to understand the WordPress and Google Analytics to utilize the services accurately.

#What is WordPress and Google Analytics?

WordPress is open source platform, which offers you to out of the box functionalities to manager the websites.

WordPress made an easy platform for everyone, anyone can build the website with free of cost and even have zero technical knowledge.

Google Analytics is free tool offered by the Google team, which can be used to assess the website, traffic stats, and audience behavior.

If you decided to add Google Analytics to WordPress without plugin then you must have access to the WordPress and Google Analytics tool.

So we can say that WordPress and Google Analytics are must required to analyze the user behavior.

But do you know? The benefits of Google Analytics and why we need to add Google analytics to WordPress?

Let me dig into the scenario for why we need to add Google Analytics to WordPress.

#Why we need to add Google analytics to WordPress?

Don’t you want to aware of your website daily visitors? And do you know what your visitors are showing interest to read your website content?

Do you know the source of traffic to your website? And don’t have an eagerness to aware of, from which devices your audience is reading your blogs?

Once you add Google analytics to WordPress, you can analyze the below-mentioned things:

  • Daily/Weekly/Monthly/Custom date user analytics.
  • Sessions, Bounce Rate, Session Duration of websites.
  • Source of traffic to your websites (Direct/Social/Referral)
  • What pages users visit (Page views)
  • When do your users visit?
  • Sessions by country
  • Top devices (Desktop/Tablet/Mobile)
  • Retain users’ information.

So every webmaster suggested to add Google analytics to WordPress, I have highlighted only a few crucial queries to let you know the importance of Google Analytics.

Once you add Google Analytics to WordPress without plugin, we can address to all these queries.

You can analyze Sessions, Bounce Rate, and Session Duration of your websites, for this we can find so many premium tools on the market, but they can not assess your website as Google analytics do.

If your website getting traffic from unwanted links, then Google search engine penalize your website, so to aware of the source of traffic to your website Analytics have the specific section.

In this article, I’ll help you to add Google analytics to WordPress in few simple steps, and all these steps are very crucial, so you need to be very careful to add Google Analytics to WordPress.

This the complete valuable information about why we need to add Google analytics to WordPress? Now let me dig into requirements to add Google Analytics to WordPress?

#What I required to add Google Analytics to WordPress?

Well! To add Google Analytics to WordPress You need to have WordPress built website and Google Analytics code.

Hope you have the WordPress site, now you need to sign up for the Google analytics account.

Google analytics account registration process will take a couple of minutes, after that we can easily add Google Analytics to WordPress.

Let me guide you the steps for “How to add Google Analytics to WordPress?”

#How to add Google Analytics to WordPress?

Actually, we have multiple options to add Google analytics to WordPress, they are:

We can add Google Analytics to WordPress without Plugin and we can add Google analytics to WordPress with plugin.

But do you know, which method is consistent, reliable and secure? Obviously, the first method which you can add Google Analytics to WordPress without Plugin.

The reason behind of with plugin is, additionally you need to activate the separate plugin for Google Analytics, and unusual plugins may decrease your server response time.

If unknowingly deactivation of the plugin may cause the issue to connect Google analytics so that it can not retrieve the data properly.

So improve your server response time, resources, we are suggested to add Google Analytics to WordPress without Plugin, furthermore, I’ll guide you about how to add Google analytics to WordPress with the best plugin.

Now let me discuss the steps to add Google Analytics to WordPress without Plugin. 


How to Add Google Analytics to WordPress without Plugin?


You can easily add Google analytics to WordPress without Plugin, carefully follow my stepwise instructions.

All these steps are sequential, if you got missed any step, then you can not see the traffic stats on your Google Analytics homepage.

Hope you already registered with Google analytics account to add Google analytics to WordPress without plugin.

If you do not have analytics registered account then please go here and register first and come back to follow the sequential steps to add Google analytics to WordPress without Plugin.

#Steps to add Google analytics to WordPress without Plugin

Before adding Google Analytics to WordPress, you just need to copy the Analytics “Tracking ID” code. I have discussed further to understand the process better.

Step-1) To add Google analytics to WordPress without Plugin, first you need to have Google analytics registered an account.

Step-2) Now Login to your Google Analytics account.

Now click on “ADMIN” option from left navigation panel of your Google Analytics homepage.

Analytics Admin

Step-3) Now you will be shown “Administration” panel of your registered website.

Select the “Account”, “Property” details of your website.

Analytics Administration

Step-4) Now click on “Tracking Info” option under your website “Property” tab.

You will be shown, multiple options, here you need to click on “Tracking Code” option.

Tracking code

Step-5) After clicking on ‘Tracking Code’ option, right side, you will be shown your website “Tracking ID” embedded with JavaScript code.

Google Analytics Tracking ID

#Copy the code.

This code you need to paste in WordPress theme files to connect your account properly.

These are the steps you need to follow to copy your Google analytics “Tracking ID”, you must need this ID to add Google analytics to WordPress without Plugin.

Now let me guide you to adding Google Analytics to WordPress.

Step-6) Now Login to your WordPress site with your valid credentials.

From the left navigation panel, you need to click on “Appearance->Editor” option.

Editor option in wordpress

Step-7) You will be shown your WordPress theme files, here you need to look for the “header.php” file.

theme header.php file

Now click on the “header.php” file.

Step-8) After clicking on the file, you will be able to customize the code in the editor area.

Now you need to paste the “Tracking Code” which you have copied at (step-5) in between the <head> </head> tags.

Add Google Analytics to WordPress without Plugin

Note: You must have to paste the “Tracking Code” in between head tags.

Step-9) After placing the code, now scroll the page, and bottom you will find “Update file” option.

update wordpress files

Click on “Update” file option to make changes in WordPress.

These are the complete steps to add Google analytics to WordPress without Plugin.

Hope you have successfully added Google analytics to WordPress site without using any third party plugin.

After adding Google analytics to WordPress, it will take few hours to retrieve your website data, so next day onwards you can see the complete traffic stats, source medium of your website.

If you find any difficulty while adding Google analytics WordPress without plugin, then please comment your queries, we will help you to resolve your queries.

#What is Google Analytics by Yoast plugin?

I said that we can add Google analytics to WordPress without Plugin, and even we can add with the plugin.

You do not need to follow any further steps to add Google analytics to WordPress, just you need to download Google Analytics by Yoast plugin.

Google Analytics by Yoast plugin is free third party plugin, it will help webmasters to see geographical user data.

You just need to activate the plugin in your WordPress sites and connect your Google Analytics account to the plugin.

That’s it, now you see the traffic stats, geographical data on your WordPress panel itself, you do not need to open analytics account separately.

In WordPress homepage left navigation panel, you will see Google analytics by Yoast plugin section separately after installing & activating the plugin.

So if you feel difficulty to setup Google Analytics WordPress without plugin then you can go for activating with plugin option, it may concise your process.

These are the complete information about Google Analytics by Yoast plugin, and adding Google analytics to WordPress without the plugin.

FAQs about to add Google analytics to WordPress without Plugin

Q) How to Install Google analytics in WordPress theme?

A) Carefully follow the mentioned stepwise guide to install Google Analytics in WordPress theme, you just need to modify the “header.php” file in the theme files to connect your Google Analytics account to the website.

Q) What is the best method to add Google analytics to WordPress?

A) I suggested you add Google analytics to WordPress without Plugin, because plugin may slow down your server response time, if you feel any difficulty in the process then you may go for Google Analytics by Yoast plugin, which can simplify the steps.

These are the complete stepwise guide to add Google Analytics to WordPress without plugin, and connect Google Analytics by Yoast plugin.

We love to hear your voice, if you like our article, then please share on social media using below icons, it may really help to someone who is in need.

Leave a Reply

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

CommentLuv badge