logo-flamma-white.svg

Google Analytics Tutorials: 5 Steps Install into WordPress

If you want to install Google Analytics on WordPress, you only need 2 minutes. I’ve split into 5 simple steps. I add images (screenshot) to make clear and easy to understand.

Here’s how:

Go to the Google Analytics URL

How to use google analytics

Login with your Google Account

Click Sign up

How to use google analytics

Type information about your website in the field provided

How to use google analytics

Click Get Tracking ID

How to use google analytics

Copy Code that appears

Now, enter the WordPress dashboard and log in. Point the cursor to the Plugin menu, click Add New

Type “Insert Headers and Footers” in the search field

How to use google analytics

Click Install Now. Wait until the installation process is complete

Click Activate

Hover over the Settings menu

Click “Insert Headers and Footers”

How to use google analytics

Enter the Code from Google Analytic in the Scripts in the Header box. Click Save.

How to use google analytics

How? Do you need 2 minutes?

But, the article that you are reading now will not explain only how to install Google Analytics on WordPress. However, more than that. I will explain more comprehensive Google Analytics.

Are you ready? Let’s get started.


Step 1. Set up analytics tags with Google Tag Manager

Before linking analytics tags with Google Tag Manager, do you know the difference between Google Analytics and Google Tag Manager? Here the main difference both:

Google Analytics’ display generating reports and website statistics, likes:

  • How many people visited your website yesterday
  • What country are they from
  • How many pages they visited per session
  • How many visitors bounced off your website (without performing any action)
  • The most popular pages, etc.

Google Tag Manager allows to deploy various types of code (tags), reports, and statistics likes:

  • Analytics tracking code
  • Google Analytics event codes
  • Google Ads conversion script and remarketing tags
  • Google Ads Conversion Tag
  • Google Ads Remarketing Tag
  • Facebook Pixel code
  • Crazyegg tracking code
  • Inspectlet tracking code
  • Any other custom HTML / Javascript code

According to AnalyticsMania:

Google Tag Manager is a Toolbox, where you keep all your tools: a regular (Google Analytics), a hammer (Google Ads), etc.

It means:

Google Tag Manager does not replace Google Analytics. They help us to add Google Analytics tracking code (tag) to the website, deploy GA event code snippets and define rules easily. Even, when each GA event must fire.

Here the result:

How to use google analytics

And then, here how to set up Google Analytics Tag and Google Tag Manager

Create an account on the Google Tag Manager

How to use google analytics

Type the account setup

How to use google analytics

Set up a container. Type container names and select the type of content (Web, iOS, Android, or AMP)

How to use google analytics

Click create, review the Terms of Service, and agree to those terms

How to use google analytics

We will redirect to this Installation code snippet

How to use google analytics

Put the two snippets of code using the Insert Headers and Footers Plugin (WordPress only). If you have already entered Google Analytics Website Tracking, please take down it first.

How to use google analytics

Sign in on the GA page.

Click Admin. Click Tracking info. Click Tracking Code

Copy the Tracking ID. Put this tracking code into the Google Tag Manager settings.

How to use google analytics

Back to Google Tag Manager dashboard. Add a new tag button. We will create a new website tag.

How to use google analytics

Set up two areas tags:

  • Configuration. Where the data collected.
  • Triggering. What type of data want to collect.

How to use google analytics

Click on the Tag Configuration button to choose the type of tag. Choose the “Universal Analytics” option.

How to use google analytics

Choose the type of data you want to track. Click Google Analytics Settings. Select New Variable …

How to use google analytics

We’ll then be taken to a new window. Put your Google Analytics tracking ID

How to use google analytics

Move on to triggering. Click on the Triggering button.

How to use google analytics

On the “Choose a trigger” page, click on All pages.

How to use google analytics

Your new tag set up should look something like this:

How to use google analytics

Click save.

In here you have finished setting up Google Analytics and Google Tag Manager.


Step 2. Set up Organize Accounts

To optimize the Google Analytics Account, we learn about the Google Analytics Dashboard. For the first step, we learn about Organizing Accounts, Properties, and Views. As you can see, within the GA Dashboard there are three tiers: Account, Property, and View:

How to use google analytics

You need to know:

  • You allow creating multiple Accounts into a single Google user
  • You can have up to 50 Properties or individual websites into a single Google Analytics Account
  • Properties contain up to 25 Views, which are custom reports for a Property.

Maybe, our business likes this:

We have an online store that sells custom workout accessories and a separate site for vegan menus, each should have a unique property and its own set of Views. 

Step 3. Set up Property-level

Set up the property to make it easier for us to read data.

Click Property Settings. Rename your Property, update the default URL, select a default View, set your Industry Category.

How to use google analytics

And then, set up Data Collection. This set up provides Google-based demographic and categorical interest data, allows data to create remarketing lists and research for display advertising campaigns.

Enable the Demographics and Interest Reports and In-Page Analytics

How to use google analytics

Google will craft campaigns on any other display based on demographic and categorical interest data for visitors we have set. If anything you need was done, click Save.


Step 4. Configure View-level settings

Back to the View.

There are three sets of clean up reports and makes better understand visitor behaviour:

Part 1. Add Filters

You will exclude internal hits. Set up a filter that contains our office’s IP address

How to use google analytics

Part 2. Exclude URL Query Parameters

Track where visitors come from, hold information about visitor’s shopping cart, or pass messages from one page to another.

Insert query parameters into View Settings. Scroll down to the Exclude URL Query Parameters box.

How to use google analytics

The field is a comma-separated and case-sensitive list. You don’t need UTM parameters because Google automatically stripped from URLs. Add custom, unique parameters like the one highlighted below only.

Part 3. Activate Site Search

Site Search tells us exactly what our visitors want from the website.

There are four main reports in GA.

How to use google analytics

Turning on Site Search tracking with:

  • Click View Settings
  • Scroll down until find Site search tracking.
  • Turn on the Site search settings
  • Insert up to five parameters in the Query parameter field such as q = search + termadvq = search + term. Add both q and advq to the “Query parameter”.

How to use google analytics

Checkbox Strip query parameters out of URL. It’s mean we won’t have to include search query parameters in Exclude URL Query Parameters list.


Step 5. Set up Goals as Success Key Metrics

You need Goals settings for tracking conversion optimization and overall website performance.

GA providing Goals default setup :

  • Count once per session. If a single visitor fills out the same contact form five times in a session, they trigger only one Goal conversion.
  • Track more than one Goal per session. If we set Goal 1 is “visit the contact form thank-you page,” and Goal 2 is “watch a video,” visitor who performs both actions during their session registers two conversions, one for each goal.
  • Up to 20 Goals in a Single view and they’re arranged in four sets of five Goals each.
  • You cannot delete a Goal after it’s created. You can change the criteria, but any conversion history for the Goal will remain.
  • Allow pause data collection and hide Goals from your reports by switching the Recording setting to “Off.”

To set up Goals, back to the Admin button. Find the Goals on the right side. Click to setup New Goal.

How to use google analytics

We will be taken into the new settings window. If we aren’t sure where to begin, click “Import from Gallery.” We will see the Goals setting, submitted by users and provided by Google.

How to use google analytics

For the best choice, filter by category and rating, and sort the results based on rankings.

How to use google analytics

The Goals setting that you see will import multiple elements:

  • Dashboards
  • Custom reports
  • Segments

How to use google analytics

If we want to create a Goal of ourself, click on “+ New Goal”. There are nine Goals or Custom Goal Templates:

How to use google analytics

Choose “Template” and fill the Goal Name and Type. There are four types:

  • Destination. A URL on a website that a visitor must hit, like a thank-you page.
  • Duration. A length of time our visitor’s session must last.
  • Pages / Screens per session. A number of pages per visitor must view per session.
  • Event. A visitor must complete an action that triggers an Event.

How to use google analytics

As a sample, select Duration to measure content engagement. Toggled to “Yes”, if we have Value for the Event. Toggled to “No”, If not.

How to use google analytics

Click Verify this Goal. These settings will show the conversion rate based on the last 7 days of data.

How to use google analytics

Click Save. You’re done!

As you can see, set up Google Analytics is not only about adding Tracking Code to your website. This is about how to make the analysis results easy to read and understood.

Table of Contents