How To Add Google Analytics To WordPress

Learn how to add Google Analytics to WordPress to measure and track visitor behavior & other important metrics on your website with no coding skills required …

How To Add Google Analytics To WordPressGoogle Analytics is a free service offered by Google that lets you generate and analyze detailed statistical reports about your site’s traffic and traffic sources and use this information to measure and track important metrics that will help you improve your traffic and conversions.

Google Analytics

(Google Analytics)

In this step-by-step tutorial, you will learn how to add Google Analytics to your WordPress site with no coding skills required.

How To Add Google Analytics To WordPress

Adding Google Analytics to WordPress involves three steps:

  1. Create a Google Analytics account
  2. Add your website details to Google Analytics
  3. Add Google Analytics code to your WordPress site

Let’s go through each of these steps in more detail.

Create A Google Analytics Account

To create a Google Analytics account for your website, you will need to have a Google account set up. If you haven’t set up a Google account yet, go through the step-by-step tutorial below before continuing any further:

After you have set up your Google account, visit the Google Analytics website (https://analytics.google.com) and log in with your Google account details …

Log into Google Analytics using your Google account details

(Log into Google Analytics using your Google account details)

You will be taken to your Google Analytics dashboard …

Google Analytics dashboard

(Google Analytics dashboard)

Tip

Google Analytics has a comprehensive help section that you can access for help and tutorials on how to use all features of the service …

Google Analytics Help Center

(Google Analytics Help Center)

We recommend going through the articles and tutorials to learn how to set up and use your Google Analytics account. To access the help center, go here:

Add Your Website Details To Google Analytics

After setting up your Google Analytics account, the next step is to add your website details.

Inside your Google Analytics dashboard, click on the gear icon to access your account’s ‘Admin’ settings …

Click to access Google Analytics Admin section

(Click to access Google Analytics Admin section)

In your Admin section, select Account > Property > Create new property to add your website details …

Google Analytics - Create new property

(Google Analytics – Create new property)

In the ‘New Property’ screen, enter your website details and click on ‘Get Tracking ID’ …

Add your website details

(Add your website details)

A unique ‘Tracking ID’ will be generated for your website along with additional scripts and code …

Google Analytics generates a unique Tracking ID for your website

(Google Analytics generates a unique Tracking ID for your website)

Important

Some WordPress themes let you add your Google Analytics tracking code directly into the theme templates …

Some WordPress themes have built-in settings for Google Analytics

(Some WordPress themes have built-in settings for Google Analytics)

If your WordPress theme has a built-in setting for adding Google Analytics, then all you need to do is log into your Google Analytics account, go to Administration > Property > Your Account > Tracking Info > Tracking Code, select and copy all of the Website Tracking code to your clipboard, then paste the code into the appropriate field inside your WordPress theme settings and click save …

Google Analytics website tracking code

(Google Analytics website tracking code)

Some WordPress themes only require adding your unique Tracking ID.

If your WordPress theme doesn’t have a built-in field for adding Google Analytics, then go through the section below to learn how to install Google Analytics into your WordPress site using a plugin.

If installing Google Analytics via the plugin shown below, you won’t even need the website tracking code, just your unique Tracking ID.

Add Google Analytics Code To WordPress

After adding your website details to Google Analytics, the next step is to install a WordPress plugin that lets you add your unique Google Analytics tracking ID to your WordPress site and begin tracking your site’s activity.

To install a WordPress plugin for Google Analytics, log into your site and go to Plugins > Add New

WordPress Plugins Menu > Add New

(WordPress Plugins Menu > Add New)

If you need help installing WordPress plugins, see this tutorial:

In the ‘Add Plugins’ screen, type ‘analytics’ into the keyword search field …

WordPress Plugins - Google Analytics

(WordPress Plugins – Google Analytics)

As you can see, there are many plugins available that you can use to install Google Analytics into your WordPress site. You can use any plugin you like, as most will work in a similar way.

For this tutorial, we’ll use a Free WordPress plugin called Google Analytics by Share This …

Google Analytics by Share This

Google Analytics by Share This

(Google Analytics by Share This)

Google Analytics by Share This is a free WordPress plugin that lets you add GA tracking code to your website without touching code or modifying any files. If you manage multiple WordPress sites, this plugin lets you choose which website you want to track from your WordPress admin dashboard. You can also disable GA tracking for specific user types, so that when you are browsing your own site it won’t bias your analytics.

To install this plugin from your WordPress dashboard, go to Plugins > Add Plugins and type in “analytics ShareThis” in your keyword search field.

Locate the Google Analytics by ShareThis plugin and click on ‘Install Now’ …

Google Analytics by ShareThis - Install Now

(Google Analytics by ShareThis – Install Now)

After the plugin has been installed, click ‘Activate’ …

Activate the plugin

(Activate the plugin)

After the plugin has been activated, you will see a new item on your dashboard menu called ‘Google Analytics’.

To configure the plugin’s settings, make sure that you are logged into your Google account, then inside your WordPress dashboard, go to Google Analytics > Settings

Google Analytics > Settings

(Google Analytics > Settings)

This will bring up the ‘Google Analytics – Settings’ screen

Google Analytics - Settings screen

(Google Analytics – Settings screen)

In the ‘Google Profile:’ section, click on ‘Authenticate with Google’ …

Authenticate with Google

(Authenticate with Google)

This will bring up a couple of windows: one to obtain an access code from Google Analytics, and a second window to paste the access code into WordPress.

First, select the Google account associated with your Google Analytics tracking account …

Select your Google account

(Select your Google account)

Click ‘Allow’ to give the plugin permission to access your Google Analytics data …

Allow the plugin to access your Google Analytics data

(Allow the plugin to access your Google Analytics data)

Copy the code generated by Google to your clipboard and paste it into the ‘Access Code:’ field, then click ‘Save Changes’ …

Copy and paste the access code

(Copy and paste the access code)

This will connect your Google Analytics account to your WordPress site.

Once these are connected, the ‘Google Analytics Account:’ drop-down menu in your plugin screen will display all of your Google Analytics accounts. Select the GA account you want to link to your site from the drop-down menu …

Select the Google Analytics account to link to your site

(Select the Google Analytics account to link to your site)

After selecting the account to link to your site, select any user roles you want to exclude from being tracked in your analytics and click ‘Save Changes’.

For example, tick the box next to ‘Administrator’ if you don’t want Google Analytics to count administrators logging into the site as visitors …

Exclude tracking for roles and click save

(Exclude tracking for roles and click save)

Your settings will be saved …

Google Analytics settings saved

(Google Analytics settings saved)

Congratulations … Google Analytics is now installed on your site!

How To Check Visitor Activity On Your WordPress Site

After installing and configuring your Google Analytics plugin, allow 24-48 hours for Google Analytics to gather data about your site’s visitor activity …

Allow 24-48 hours for Google Analytics data to show

(Allow 24-48 hours for Google Analytics data to show)

If you want to test your connection, log into your Google Analytics account, then go to Administration > Property > Your Site Account > Tracking Info > Tracking Code and click on Status > Send test traffic

Test your Google Analytics connection

(Test your Google Analytics connection)

After clicking the button, you will see a new window open with your test results and the Status message “Test traffic sent.”

If you can see your site in the testing window, then your connection has been established and everything should be working ok …

The connection between Google Analytics and your WordPress site has been established

(The connection between Google Analytics and your WordPress site has been established)

To access analytics data from your WordPress dashboard, log into your site and go to Google Analytics > Dashboard

Google Analytics > Dashboard

(Google Analytics > Dashboard)

This will bring up the ‘Google Analytics – Dashboard’ screen inside your WordPress admin area …

Google Analytics - Dashboard screen

(Google Analytics – Dashboard screen)

Check back in a few days and you should begin to see activity data from your site in your Google Analytics account …

Google Analytics dashboard

(Google Analytics dashboard)

And inside your WordPress site …

Access Google Analytics data inside WordPress

(Access Google Analytics data inside WordPress)

Google Analytics & WordPress – Additional Information

Here are some additional tips for using Google Analytics with WordPress:

Install The Google Analytics App

After installing and setting up Google Analytics in WordPress, we also recommend downloading and installing the Google Analytics app …

Install the Google Analytics App

(Install the Google Analytics App)

This lets you check your site’s statistics any time from your phone …

(Check your site’s stats from your phone)

For more information about using the Google Analytics App, go here:

Learn How To Use Google Analytics

The better you understand the behavior of your audience and how visitors interact with your site, the more you can improve your content marketing, your sales, and your conversions.

Knowing where visitors are coming from, how long they stay on your site, what pages they are entering and leaving from, what keywords they are searching for, what devices and browsers they are accessing your site with, etc. is valuable data.

We recommend going through the articles and tutorials in the Google Analytics Help Center to learn how to use all of the features available, online tutorials, Google Analytics videos, etc. …

xxx

(Learning how to use Google Analytics will improve your sales and conversions)

Congratulations! Now you know how to install and integrate Google Analytics with your WordPress site.

How To Add Google Analytics To WordPress

(Source: Pixabay)

[adrotate group="6"]

***

[adrotate group="3"]

Disclaimer: We are not directly associated with WordPress or any WordPress-related products discussed on this website. We may derive affiliate commissions from the purchase of any products advertised on this site. All product images remain the copyright of their respective owners and are used only for training and illustrative purposes.

***

Did you find this post useful? If so, please share this page with anyone thinking of starting or growing their business online using the share buttons below.

WP Total Audit – Find And Fix Common WordPress Errors

Find and fix common WordPress errors with WP Total Audit.

WP Total Audit – Find And Fix Common WordPress Errors

WP Total Audit - Find And Fix Common WordPress ErrorsIn this post, we look at a WordPress security plugin that can help you find and fix common WordPress installation faults.

For additional information on keeping WordPress secure and troubleshooting common WordPress errors, see the following sections:

WP Total Audit

WP Total Audit - Find & fix common errors in WordPress

(WP Total Audit – Find & fix common errors in WordPress)

After logging into thousands of WordPress sites while providing help or support for customers, the expert WordPress developers of WP Total Audit noticed the same installation or configuration mistakes being made over and over again, leaving the sites vulnerable to security attacks, plugin conflicts, etc.

Fortunately, these common mistakes are easy to fix and the WP Total Audit plugin provides ‘one-click’ fixes to from your dashboard. Whether you are a WordPress newbie or you have been using WordPress for years, WP Total Audit is a useful and inexpensive plugin that will automatically scan your site for security and performance loopholes and instantly alert you about any issues that need fixing …

WP Total Audit - Find & fix 17 hidden WordPress dangers in seconds!

(WP Total Audit – Find & fix 17 hidden WordPress dangers in seconds!)

WP Total Audit can be used in brand new or established WordPress sites and can be installed alongside other WordPress security plugins for hardened security.

Below are some testimonials from WP Total Audit users:

”One of the best plugins or probably the best plugins one can invest this year!” Richard Cheah

”Anyone who can push a button can handle it. The instruction video is actually superfluous. A must have, for such a ridiculously low price!” Peter Heine

This inexpensive plugin installs in seconds, can be used on all your WordPress sites, offers a 30-day money back guarantee and lifetime updates and support.

Learn more here: WP Total Audit

[adrotate group="6"]

***

[adrotate group="3"]

Disclaimer: WordPress and its related trademarks are registered trademarks of Automattic, Inc. This site and the products and services offered on this site are not associated, affiliated, sponsored, or endorsed by WordPress, nor have they been certified, tested, or reviewed by WordPress. The owner, contributors and/or advertisers may derive financial benefit from sales of items reviewed, advertised, or linked to this site.

***

Did you find this post useful? If so, please take a moment to use the social links below to share this article with anyone thinking of starting a business online.

How To Collect Demographic Data With WordPress

In this tutorial, we show you how to use a free service to collect demographic data from your visitors using WordPress and Google Analytics.

How To Collect Visitor Demographic Data With WordPress

In this tutorial, we explore a free service that lets you collect demographic data from your visitors with WordPress and Google Analytics.

If you have been following our tutorials, then you should already have a web analytics tool like Google Analytics installed on your site.

If not, you will need to install Google Analytics on your site first before you can complete the tutorial below.

help To learn how to add Google Analytics to WordPress, see the tutorial below:

redarrow How To Add Google Analytics To WordPress

***

How To Collect Visitor Demographic Data With WordPress

Google Analytics is a powerful web analytics tool that provides comprehensive and detailed statistical information about your site visitors (useful for measuring things like your site’s performance, web traffic, and conversions).

Demographic information is vital, as it helps you identify potential customer groups for your products and services.

Google Analytics can provide demographic data and ‘Audience’ reports for some accounts (e.g. users who advertise online using Google AdWords and who have linked their AdWords accounts to Google Analytics). Some users, however, may not be able to access detailed insights and important demographic data about their visitors.

A free service called UserReport integrates data collected from your site with Google Analytics to provide you with important demographic data …

UserReport

UserReport can provide detailed information about visitors coming to your website, such as age, gender, income, occupation and level of education …

UserReport

Having access to demographic data such as the above is extremely valuable and has many practical uses.

For example, you can:

  • Identify the gender and age of visitors interested in buying a specific product.
  • Identify the average income and education level of returning visitors, leads, prospects and customers.
  • Identify geographical areas that convert best.
  • Use gender, age, income, and education level information to create new products and services suited to your audience.

Now, of course, your site can’t “magically” extract demographic data about your site’s visitors. You have to set up a process that allows you to collect data from your visitors.

UserReport and GoogleAnalytics create an exchange of information between your accounts as shown in the diagram below:

How To Collect Demographic Data In Google Analytics

The above image shows what type of data is transferred between both accounts. UserReport sends demographic data to Google Analytics’ custom variables allowing you to create custom reports and segments for better and easier analysis, and in return, UserReport fetches regular analytics data from your Google Analytics account and combines it with its demographic data to provide you with insightful information in your UserReport dashboard.

In this tutorial, you are going to learn how to set up UserReport and integrate it with Google Analytics to collect and view visitor demographic information, and then how to add the UserReport tracking code to your site’s pages using a free WordPress plugin created by the developers of UserReport to make the process easy and simple.

Important

Note: Google Analytics is constantly introducing new features, including the ability to access detailed reports containing visitor demographic data, visitor interests, etc. If you can access demographic information directly from your Google Analytics account and feel that there is no need to use a tool like UserReport, then just skip the tutorial below.

Alternatively, if you are already using a plugin like Google Analytics Plugin For WordPress by MonsterInsights, you can enable Google Analytics’ own ‘Demographics and Interests’ reporting feature directly inside the plugin.

Step 1 – Set Up Your UserReport Account

You will first need to set up a Free account with UserReport.

Go to UserReport.com and click on the ‘Create free account’ button …

UserReport

Enter your registration details and click on ‘Create my account’ …

UserReport

After you have registered and have been redirected to the site’s admin area, click on ‘Add website’ …

UserReport

Enter the URL of the website you want to obtain demographic data for, your site’s name and select a language, then click on ‘Create website’ …

UserReport

Your website will be added to your account and a code snippet will display on the screen …

UserReport

This code needs to be added to all of your site’s pages. For now, just select all of the code, and copy it to your clipboard. We’ll use this code in the next step.

Paste the code into a plain text file (e.g. notepad) and click on the ‘Done!’ button to complete this step …

UserReport

Your website will be added to the UserReport ‘Your websites’ section. You can add as many websites as you want by simply repeating the simple process shown above …

UserReport

The next step is to add the code snippet generated by UserReport to all of your site’s pages. To do this quickly and easily, we’ll use a WordPress plugin as shown in the section below.

Step 2 – Install And Activate The Demographic Data Plugin

The code snippet generated by UserReport in the previous step needs to be added to all pages of your WordPress site.

For this step, we’ll use the free WordPress plugin below.

Demographic Data In Google Analytics

UserReport

Plugin URL

Download the plugin here:

http://wordpress.org/plugins/demographic-data-in-google-analytics

Plugin Description

This plugin adds the required javascript for the UserReport service which will enable you to transfer background information about your visitors to Google Analytics.

‘Demographic Data In Google Analytics’ supports transferring up to 5 custom variables into Google Analytics. The google analytics custom variables can contain information such as: Gender, Age, Education and more. The demographic data transferred to Google Analytics is collected using the free UserReport service.

Note: This plugin does not provide the tracking code for Google Analytics. You will need to add the Google Analytics code to your WordPress site separately, either through your theme options if available, or using a plugin.

help To learn how to add Google Analytics tracking code to WordPress using a plugin, see the tutorial below:

redarrow How To Add Google Analytics To WordPress

Plugin Installation

From your WordPress administration area, select Plugins > Add New

How To Collect Demographic Data In Google Analytics

Select the Install Plugins > Search tab, then type in “demographic” into the search field and click on the Search Plugins button …

How To Collect Demographic Data In Google Analytics

Locate the plugin in the search results and click Install Now

How To Collect Demographic Data In Google Analytics

Activate the plugin after installing it …

How To Collect Demographic Data In Google Analytics

Once the plugin has been activated, click on Settings

How To Collect Demographic Data In Google Analytics

You can also get to the plugin’s settings screen by selecting Settings > DGA (UserReport) from your dashboard menu …

How To Collect Demographic Data In Google Analytics

This takes you to the plugin settings page.

Paste in the UserReport code snippet that you saved to your clipboard earlier into the field as shown in the screenshot below, and click the ‘Save Changes’ button to update your site with the code …

How To Collect Demographic Data In Google Analytics

Plugin Configuration & Usage

There is nothing further to configure in the plugin. The plugin simply adds the required code to all of your site’s pages. The rest of the software configuration happens in your UserReport account dashboard.

This is covered in the next step.

Step 3 – Integrate UserReport And Google Analytics

After you have set up the plugin on your site, go back to your UserReport account.

In the ‘Your websites’ section, find your website’s details and click on the ‘Google Analytics’ link in your site panel to begin the process of enabling Google Analytics integration …

How To Collect Demographic Data In Google Analytics

If you have not configured the integration with Google Analytics yet, a message will display telling you that you first need to configure this feature in order to use it. Click on the link in the message to go to the configuration settings screen …

How To Collect Demographic Data In Google Analytics

You will be taken to the ‘Google Analytics integration’ screen.

As the screenshot below shows, if you haven’t configured the integration feature yet, you will see a message telling you that ‘Google Analytics integration is inactive‘ …

How To Collect Demographic Data In Google Analytics

Before you can activate the integration with Google Analytics, you will need to connect your account, so leave the top button turned “off’ for now, and click on the ‘Connect to my Google Analytics account’ button …

How To Collect Demographic Data In Google Analytics

Google will ask you to give UserReport permission to access your Google Analytics account data. Click ‘Accept’ to continue …

How To Collect Demographic Data In Google Analytics

You will be taken back to UserReport and asked to select the Google Analytics account you want to send information to.

Note: Make sure you select the same website account that you have set up in UserReport and added the code snippet to. Click ‘Save’ when done …

How To Collect Demographic Data In Google Analytics

After your account has been successfully connected to your Google Analytics account, click on the ‘Google Analytics integration …‘ button to activate the integration feature …

How To Collect Demographic Data In Google Analytics

After Google Analytics integration becomes active, click on the checkbox next to ‘Transfer data to Google Analytics Custom Variables Key’ …

How To Collect Demographic Data In Google Analytics

The settings box will expand to reveal a number of drop-down menus labeled ‘Select Custom Variable (Key X)’ …

How To Collect Demographic Data In Google Analytics

Select an option for each field from the choices available (e.g. Gender, Age, Current occupation, Education, etc.) …

How To Collect Demographic Data In Google Analytics

Once you have selected your options, click on the ‘Save’ button …

How To Collect Demographic Data In Google Analytics

After saving, you will be taken to the ‘Settings’ area of your UserReport dashboard.

This section also lets you set up surveys to collect visitor data, add a feedback forum, or a click map, collect leads via email, share your site with others, and more …

How To Collect Demographic Data In Google Analytics

Note: There’s no need to edit the script code you have installed on your website in the previous step. Allow 24 – 48 hours for data about your site to be displayed in your UserReport dashboard.

UserReport – Additional Information

UserReport allows you to collect information from visitors and then send real demographic data to Google Analytics using online surveys …

How To Collect Demographic Data In Google Analytics

You can create free online surveys from your UserReport account dashboard using your own custom logo and colors …

How To Collect Demographic Data In Google Analytics

The strength of UserReport’s integration to Google Analytics is the ability to filter your behavioral data from Google Analytics by the answers collected with your online survey. The advanced integration between UserReport and Google Analytics sends data from your UserReport online surveys to your Google Analytics account’s custom variables …

How To Collect Demographic Data In Google Analytics

UserReport is then able to send data like gender, age and education to your Google Analytics account, which enables you to see the behavior of these specific demographic segments directly in your own Google Analytics account using Advanced Segments.

Filtering survey answers by Google Analytics data enables you to see how people with different characteristics engage with your website …

How To Collect Demographic Data In Google Analytics

Once everything has been set up correctly, you can access reporting data about your visitors combined with Google Analytics information directly from your UserReport account …

Demographic Data

help For more information about UserReport, visit their site below:

redarrow UserReport.com

Hopefully, you have found this tutorial on collecting demographic data from your visitors with WordPress useful.

How To Collect Visitor Demographic Data With WordPress

***

[adrotate group="3"]

Disclaimer: WordPress and its related trademarks are registered trademarks of Automattic, Inc. This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by WordPress, nor have they been certified, reviewed, or tested by WordPress. The owner, contributors and/or advertisers may derive financial benefit from sales of items reviewed, linked to, or advertised on this site.

[adrotate group="6"]

***

Did you enjoy this article? If so, please consider using the share buttons below to share this article with with other bloggers.