Google Analytics is one the most widely used methods of analysing website visitor numbers and behaviour. Use it to track your visitors, find out what they like, and grow your audience.
You might have heard of Google Analytics, you might already be using it, but haven’t explored beyond the basics. In this article we will see how to set it up on your website and look at some of the things it can do.
We will also look at some of the drawbacks and potential problems with it.
Create an account

Go to the Google Analytics website. Some parts of the site are for large businesses and some features must be paid for, but for most people, a basic, free Analytics account is sufficient. It does everything you need and if you ever want more, then you can add extra features.
For now, just click Analytics in the navigation bar at the top of the page and then click the SIGN UP FOR FREE button.
Google Analytics requirements
You need a Google account. This is the same one as used for Google Mail, Calendar, Docs, YouTube, and so on. One Google account gets you into everything the company does. Sign in with your Gmail email and password for example. If you don’t have a Google account, there is a link to create one.
Unlike Google AdSense, which has strict rules and requirements for membership, Analytics is much more open and pretty much anyone can sign up as long as your website doesn’t do anything illegal.
Create a property
From time to time, Google tweaks the Analytics site and changes a few user interface elements, but the basic method of adding a site hasn’t changed.

After signing into Analytics, select Admin in the sidebar by clicking the gear icon in the bottom left corner. Click the menu under Account and select the account to use or Create new account.
The simplest way to use Analytics is to have one account and if you have just joined you will have only one, but it is possible to have up to 100 and they can be created using the Account menu. This is for people have more than one website and it is possible to track them all within one Google Analytics account
In the middle column is Property. If you don’t have a property, use the menu to create one.

A property has a name and URL and these should be the website name and URL that you want Analytics to collect visitor data about. Every website has a unique property. Create a new property if you have none or select it to continue.
Click Property Settings on the left to see the details. At the top is the Tracking Id. This is a unique code that identifies your website.

Get your tracking code
Click Tracking Info in the menu on the left to expand it and there are a number of options. Click Tracking Code and new information appears.

At the top is the Tracking ID. Below Website tracking is some code in a box. Both the tracking ID and code are unique to the site and you need one or the other.
Insert Google Analytics in WordPress
Although it is possible to insert the Google Analytics code into WordPress without a plugin, it is really only an option for expert users. For most people, a plugin or theme is the best way to to insert Google Analytics code.

There are many different Google Analytics plugins and Insert Headers and Footers is a popular choice. Before installing a plugin though, check your SEO plugin to see if it enables Google Analytics code to be entered. Also check your theme, which may provide the feature somewhere in its settings.
Tracking other sites
The Website Tracking code listed in the Google Analytics Tracking info can be copied and pasted into web pages created manually or into plugins that can insert code into the header of web pages.
Other content management systems like Joomla and Drupal have plugins that can automatically insert the code, and with hand coded pages you can copy and paste the code just before the <body> tag.
The setup is now done. Wait a couple of days to allow Google Analytics to record some visitors, then go to the website and analyse them
View All Web Site Data
Google Analytics enables you to analyse your website traffic in many ways and parts of it are quite complicated. It would take a dozen articles to go into every aspect of Analytics, so let’s just take a quick look to get you started.
It is simpler if you have just one website and the overview may appear automatically if there are no other sites. If it does not, click All Web Site Data in the top left corner, select the account, the property and the view like this.

The chart shows the number of users by day, week and month. The time period can be selected at the top of the page, such as day, week, month, or custom.

Users: The number of unique visitors to the website. If the same person comes back tomorrow or next week, they are counted only once.
Page Views: Some users might view several pages or even refresh the browser and view the same age again, so the Page Views is always higher than the Users.
Sessions: This is the number of times users have interacted with your site, such as viewing pages. A user might return tomorrow, next week and so on, so the Sessions is higher than Users. It is lower than Page Views because several pages might be viewed in a session.
Pages/Session: When a user visits your site, it is called a session. This is the number of pages they view during that session.
You should aim to increase all of the above figures. You need more Users, Page Views, sessions and Pages/Session.
The following figures should be as low as possible
Bounce Rate: The number of visitors that take one look at the page and leave without interacting with it, like leaving comments, clicking links and so on. High numbers are often a bad sign, but it depends on the nature of the site. A site that provides answers to questions or problems might have a high bounce rate because people read the answer and leave. The page has done its job.
New Sessions: This is the percentage of people visiting your site for the first time. Ideally you want people to keep coming back and reading more articles, so lower percentages are better.
Your most popular pages
Which pages on your website attracts the most visitors? Google Analytics can tell you.
In the sidebar, expand Behaviour > Site Content and select All Pages. A list of pages ranked by number of views is displayed. It shows the most popular pages at the top and the number of views each one got.

Set the date
All the statistics in Analytics are for a specific date period. You can set the date range at the top of the page and see daily, weekly and monthly views. Select Last 30 days or Last 7 days in the Date Range for example.
Google Analytics problems
Problems can occur with Google Analytics and a common one is that you have zero visitors or double the usual visitors.
It is almost always a problem with the Google Analytics code.
Check that only one plugin is inserting the Analytics code. If there are two then problems occur.
Some people like to install an ad blocker or privacy extension into their web browser. This can block Google Analytics. It is not known how many of your website visitors are doing this, but it could be a significant number.
This means that the numbers Google Analytics reports are probably less than the true figures. There isn’t anything you can do about this. You just have to work with the data you have.
Alternatives to Google Analytics
There are several alternatives to Google Analytics and some of them have great features. However, none of them has a search engine that is used by a billion people every day.
Is Google Analytics data shared with Google search? I think it is highly likely and there could be benefits when it comes to appearing in search results.
Analytics isn’t going to get you onto the first page of search results, but it at least lets Google know that your site exists. It is therefore recommended for new sites.
If you have a well established site that Google already indexes then alternative analytics services that are easier to use or have more features might be preferred.
If you are looking for an alternative to Google Analytics, read my article Add analytics to WordPress site and increase privacy. It uses Koko Analytics, which is free, easy to use and private. It is the simplest analytics around.
Clicky: This is free for up to 3,000 page views a day and it makes basic analysis of visitors easy. The paid service has extra features not in Google Analytics. For example, it monitors your website and lets you know if it goes offline, it displays heat maps showing the parts of the web page that visitors are most interested in.
StatCounter: This is free for up to 9.000 page loads a day, which makes it useful for small to medium size websites. It not only enables you to analyse website visitors, there is an option to display a page views counter on your site to show off your stats to visitors. There are useful configuration options.
Heap: Google Analytics has some amazing features, but parts of it are complicated and difficult for non-technical people to use. Heap aims to make tracking and analysing visitors easier. It captures user interactions and you can even see every action a user has taken on your site. Heap is free for up to 50,000 sessions a month.
W3Counter: There is a free plan that offers basic analytics, but it only stores the last 30 days of data. The dashboard is so simple that anyone can understand it and this is its strength (check out the demo on the website). It is brilliant for beginners and non-technical users.
Action points
- Create an account at google.com/analytics
- Create a property
- Get your tracking ID or code
- Insert it into your website using a WordPress plugin
- Wait a few days then visit google.com/analytics to analyse your visitors
Go: Build a pro site with self-hosted WordPress
2 Set up a WordPress website in easy steps
3 Essential WordPress plugins to install on day 1
4 SEO plugins – optimise your site for search
5 Install Google Analytics
6 Get accepted for Google AdSense
8 Back up your WordPress website
9 2 free tools to monitor your website
10 Check your site on all devices
11 Access your site with FTP to fix faults