Setting up Google Analytics for a WordPress site is a simple process that can help you track website traffic and activity. You can use the Google Analytics tool to collect data about visitors to your site, as well as their activities on your site. To set up Google Analytics for your WordPress site, follow these steps:
- Log in to your Google account and create a new account if you don’t have one already. If you’re using an older version of Google Analytics, you may need to update your settings first.
- In the top left corner of your screen, click on the three lines that look like a triangle. This will open a new window with all of your current settings for Google Analytics.
- In the top right corner of this window, click on the three lines that look like an X. This will close the current window and open a new one with all of your new settings for Google Analytics.
- In the top left corner of this new window, click on the three lines that look like an I (for “Include.”). This will add Google Analytics tracking code to your page. You’ll need to copy this code into each page where you want it to tracking data: header tags, footers, and any other places where data is collected by Google Analytics (like in comments or on social media). You can also track data through JavaScript if you want to use tracking code in more places than just header tags and footers!
- Click on OK to close all of your changes for Google analytics and return to the previous page where you were setting up tracking code for other pages on your website!
Setting Up Google Analytics
Head over to the Google Analytics dashboard and sign in. If it’s your first time using it, you can simply click “Start Measuring” to set it up. If you have an existing site, and want to add another, you’ll need to click the settings icon in the bottom left and click “Create Account” to add a new one.
Creating an account will automatically create a “Property” for you, which represents your site. You can have multiple properties per account, but just one is fine for a single site.
To set up analytics, you’ll need to connect your website with a data stream. You can do this from the settings menu by clicking “Data Streams” > “Web.”
You’ll need to enter your website URL, and a name for the stream. Don’t worry, “Advanced Measurement” is free.
On the next screen, you’ll be presented with your “MEASUREMENT ID.” You will need this to link it to WordPress.
Enabling Google Analytics In WordPress
You have a few ways of adding the script to WordPress. If you’re comfortable modding your site directly, you can simply add the tracking script to the
Otherwise, you can configure the analytics with a simple plugin. Head over to “Plugins” and click “Add New.” Search for “Google Analytics.”
There are a couple good ones, but “GA Google Analytics” is basic and just adds the tag and tracking code with some configuration.
Install and activate it, and then paste in the G-XXXXX.. tracking code that Google gave you. The default configuration is fine, so just save changes.
You should now see the script in the footer/header of your page’s HTML. After 24-48 hours, you’ll start to see entries in the Google Analytics console.