How to Install Google Analytics in WordPress?

This is How I Install Google Analytics Tracking Code to WordPress Websites

There are countless ways to install Google Analytics on a WordPress website. Today, I am going to share with you one of the simple methods that I personally use to track my traffic and conversions.

In simple words, Google Analytics is a traffic tracking tool to measure your site traffic. It is completely free to use for anyone who has a Google account.

You can track a lot of things about your site traffic such as user demographics, time spent on site, duration of each session, and conversion tracking.

Why You Should Install Google Analytics?

Most people use Analytics to measure their site traffic. Google Analytics provides a lot of useful data that helps you understand your website audience needs. You can use that data to create better content for the audience.

There are a lot of advanced tracking features that could help you track a lot of things.

Whichever purpose you use Google Analytics for, it remains one of the powerful traffic analysis tools available for free.

So, today, I am going to show you how to set up a Google Analytics account, and how you can add Google Analytics tracking code.

How to Create a Google Analytics Account?

It is actually a simple process. However, you need a Google account in order to use Google Analytics. Let me show you a step by step process:

Step 1: Visit Google Analytics website and log in to your Google account.

Signup for Google Analytics

Step 2: It will take you to a new page. Here, you need to click on the ‘Signup’ button.

Fill out signup form

Step 3: Fill out this form by entering your site details. Here’s how:

  • What would you like to track?: select Website
  • Account Name: Enter your company name
  • Website URL: select a protocol from the drop-down menu to whichever you use. In my case, it is HTTPS. Then enter your website URL.
  • Industry Category: Anything that fits your industry. Just make sure that it is as close to your website niche as possible.
  • Time Zone: Select your country from the list.
  • Scroll down the page and click on Get Tracking ID button.

Your Analytics account is set up now we need to enter tracking code to our WordPress website.

How to Add Google Analytics Tracking Code to Your WordPress Website?

You can add tracking code to your WordPress website in a lot of different ways. The simplest one is to use a plugin. Here’s how to do it:

Install Google Analytics Dashboard for WordPress plugin

Step 1: Download the Google Analytics Dashboard for WordPress GADWP plugin from the WordPress plugin directory.

Step 2: Activate it then go to Google Analytics from your WordPress sidebar menu. Click on the general settings.

Authorize plugin from general settings

Step 3: Now, click on the Authorize Plugin button. On the next page, click on the ‘Get Access Code’ link.

Allow access to Google Analytics Dashboard for WordPress plugin

Step 4: It will load a new page. Here you need to select your Google account. On the next page, it will ask you to allow access to GADWP, click on the Allow button.

Copy Google Authorization code and paste it into plugin settings

Step 5: Google will give you a code, copy this code. Now go back to your WordPress GADWP general settings and paste the copied code next to “Access Code:”. Click on the button Save Access Code.

Step 6: If you have multiple Google Analytics properties then you need to select a property/view from the drop-down menu.

Now you can receive data in your Analytics account. One of the good things about using GADWP is you can visualize Analytics data on Your WordPress dashboard.

How to Check if Google Analytics is Correctly Installed?

Step 1: Log in to your Google Analytics account and go to your website property.

Step 2: Load your site home page or any page in incognito mode.

Step 3: You will see Active users right now as marked as 1. If not wait a couple more seconds. If still, you don’t see it, it looks like you have messed up your installation. You can easily debug it.

I hope this post has helped you in installing Google Analytics to your WordPress. Check out our other tutorial on how to exclude WordPress admin from google analytics

Leave a Comment

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

Get Exclusive Content

Join thousands of subscribers who get free newsletter with powerful tips to drive more traffic and revenue.

You have Successfully Subscribed!