Adding a WordPress Website to Google Analytics

Overview

The following How to guide covers adding a WordPress website to an existing Google Analytics account.

Once the website has been added to Google Analytics, we add the GA Google Analytics plugin to the WordPress site. There are other ways for WordPress to interact with Google Analytics, but I chose the GA Google Analytics plugin because it has a Cookiebot add on to simplify GDPR compliance (That’s for another post). GDPR is the EU General Data Protection Regulation framework.

GDPR is somewhat complex, so I’ll say for the moment go and google it but  I liked both of the following sites https://eugdpr.org and https://smartblogger.com/gdpr

That said, let’s continue…

Step by step instructions

Setting up Google Analytics

1; Search for Google Analytics in a web browser or

2; Browse to https://analytics.google.com/analytics/web

It’ll present a page with a choose account option that may present your google account if you have one, as well as options to use another account.

Logging in to Google analytics
Log in to your Google account

3; Click the Admin icon (the gear icon at the bottom left of the page).

Google Analytics Home page, clicking the Admin icon
Click the gear icon

4; Click create new property.

Google Analytics Admin, creating a property
Create a new property

5; Choose Web, and click the continue button.

Google Analytics choosing a property type
Choosing a property type

6; Type in a Website Name, a Website URL, and choose an Industry and Category as well as a Timezone to suit, then click the Create button.

Google Analytics, completing the setup
Completing the setup

If you return to the Admin page by clicking the gear icon at the bottom left of the page and then clicking the dropdown arrow under the Property tab, you’ll see the new website listed together with any that existed before

Google Analytics, checking the new property
Checking the new website

7; Copy the Tracking ID for the new website by selecting the “Tracking Code” link.

Google Analytics page showing the tracking ID
Copying the tracking ID

Setting up GA Google Analytics

8; Login to WordPress admin for the required site. Select “Plugins>Add New” and search for “google analytics”

9; We’re going to use the GA Google Analytics plugin because it’s simple to set up and make GDPR compliant (no HTML coding required).

Select “Plugins>Add New and then click on the “Install Now” button in the “GA Google Analytics” box.

Installing the GA Google Anlaytics plugin
Installing the GA google Analytics plugin

10; Select “Plugins>Installed Plugins” and click on the activate link for GA Google Analytics. Once it’s activated click on the settings link as shown below.

Activating the GA Google Anlaytics plugin
Activating the plugin

11; Browse to “Settings>Google Analytics” and paste or type in the tracking code from the google analytics website, select Force SSL and then scroll to the bottom of the page and click Save. We’re using the default setting for the tracking method

Pasting in the tracking code to GA Google Anlaytics plugin
Pasting in the tracking code

12; After 24 to 48 hours statistical data should start appearing on the Google Analytics website and you can log in to check it’s all working.

Google Analytics web page showing statistics for the new site
Checking the statistics in the Google Analytics website

Checking with the Google Analytics Mobile App

13; If you have Google Analytics installed on your phone, you can check the new site shows up there. The screenshots below were taken from an Android phone but Google Analytics is available for iOS on the App Store.

Select the three bars at the top left of the Home page.

Checking website statistics with the Google Analytics Android app
Finding the new site with the Google Analytics Android app

14; Select all Web Site Data. It doesn’t matter which website is shown there, it will take you to the “Select View” page.

Selecting All Web Site Data in the Google Analytics Android app
Select All Web Site Data

15; From the “Select View” page, select “All” and choose the website you just set up.

Selecting All Web Site Data for the new website
Select All Web Site Data for the new website

16; At this point, you’ll be getting some basic data from google analytics. You can get a free ebook about it from here.

To cut a long story short, a summary.

To summarize the above, if you have an existing google analytics account, log in, create a new property for the website, copy the tracking ID and paste it into whatever google analytics plugin you decide to use. Within 24 to 48 hours you can either use a browser to return to the google analytics site to check the statistics or use an app from your phone.

If you’re a network engineer and you could use an IPv4 subnet calculator check out the free techiedoodah IPv4 excel subnet calculator spreadsheet and if you get a lot of time hands on rackside and need a tray to put your laptop on, let us know what you think of the Portable Rack Mount Laptop Tray and sign up if you want one. Type with two hands instead of one, be more comfortable, improve your productivity and get out of the server room sooner, (or wherever the rack happens to be).

Techiedoodah blogs are created in the hope that they can help others by giving reallife examples. If this has been useful to you please feel free to leave a comment. If you’re reading this post on the home page, you won’t be able to post comments here, so follow this link to the blog, and then scroll to the comments section at the bottom of the page.


Comments below for the article “Adding a WordPress Website to Google Analytics”.

Leave a Reply

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