WebHostingPeople Blog

How Can We Help?

How to Add Google Analytics to WordPress?

You are here:

Google Analytics is a costless online analytics service provided by Google that tracks and reports website traffic. Google introduced this service in November 2005 following the acquisition of Urchin. It is presently the most widely utilized online analytics service available. Integrating Google Analytics into any type of website is a simple process. This is because you only need to insert the code snippet provided by Google Analytics.

However, if you are utilizing WordPress, the procedure for installing Google Analytics is even more effortless. This is due to the availability of numerous plugins specifically designed for Google Analytics integration on WordPress sites. There are also some advanced plugins that allow you to customize the tracking process. In this tutorial, I will demonstrate how to add Google Analytics to a WordPress website. To configure analytics for our WordPress site, we must first establish an account with Google Analytics. Let’s proceed with that step.

Establish a Google Analytics Account

Access the Analytics dashboard and log in using your Google account credentials. Once logged in, create a new property. You will encounter a form resembling the following image.

Google Analytics

Within this form, input all the required details such as website title, URL, time zone, and category. After completing the form, click the Get Tracking ID button located at the bottom of the page.

Google Analytics

The system will generate a unique tracking number for your site. Once generated, you will be redirected to a page displaying the tracking ID and tracking code. Refer to the screenshot below to locate the Tracking ID and Tracking code. Copy the tracking code as we will add it to WordPress in the next step.

Google Analytics

Integrate Google Analytics Tracking Code into WordPress

Now, access the administration panel of your WordPress website. Hover over the Plugins option located in the left sidebar and click on the Add New button to search for and install new plugins.

Within the WordPress plugin repository, search for Google Analytics and install the plugin highlighted in the following screenshot. You can choose to use different analytics plugins if desired, but the one we are installing is the simplest option available.

Google Analytics

After the installation, activate the plugin. Then, navigate to the Settings -> Google Analytics option in the left sidebar of the administration panel. On that page, you will encounter a form with one field and one submit button, as shown in the following image. Input your tracking ID into the Web Property ID field and click the Save Changes button.

Google Analytics

Now, Google Analytics will commence tracking visitors to your website. Thus, you have successfully installed Google Analytics on your WordPress site. If you have any inquiries regarding this process, please let us know in the comments section below.

Post Your Comment