How to add Google Analytics to your WordPress website

How to add Google Analytics to your WordPress website

This article was written by Upper Hand Digital's strategic partner: Next Level Web Design


The post How to add Google Analytics to your WordPress website appeared first on Upper Hand Digital’s strategic partner’s website: Next Level Web Design. and was written by Administrator

Intro

This detailed explanation takes you through every step that you have to take to add Google Analytics to your WordPress website…

There are a few steps to adding Google Analytics to a WordPress site but it’s reasonably simple to do. The aim of this tutorial is to take you step-by-step, through creating your Google Analytics account, and then add the tracking ID to your website.

    1. Create/make sure you have a Google account
    2. Sign in to your Google Account
    3. Go to: https://analytics.google.com
    4. Set up a Google Analytics account for your site within the Google Analytics Admin area
    5. Grab tracking ID
    6. Log in to your WordPress website
    7. Install GA Google Analytics WordPress plug-in
    8. Add tracking code to Settings > Google Analytics
    9. Test that Google Analytics is being added to your site’s pages

<!–

    1. Initial Google Analytics Settings to Change: Create new views by copying initial ‘All Web Site Data’ view twice
    2. Add filter for own IP to IP Filtered viewHow to set up reports to be emailed to you regularly

–>

Step 1: Create a Google Account

Please note: If you already have a Google account, you can skip Step 1 and Go to Step 2

  1. Type: www.google.co.uk into the address bar of your web browser.
  2. Click on blue ‘Sign In’ button to the top right of the Google home page.
  3. Click on the ‘Create account’ link and then choose the option that you want your Google account for. If you don’t know, just choose the ‘For myself’ option.
  4. Enter your first and last names and then enter the email address that you’d like to have. You may find the address you want has already taken so keep trying until you find a suitable one that Google will let you have.
  5. Enter a password that is secure but that you will remember. (TIP: Combinations of Numbers, Symbols, Lower and Uppercase characters make your passwords more secure)
  6. Once you have filled in all of the details that Google requires, click on the blue ‘Next’ button.
  7. Enter a mobile telephone number (optional), a recovery email address (also optional), and your date of birth and gender.
  8. Click on the blue ‘Next’ button once you’ve provided Google with the details it requires.
  9. Enter the 6-digit verification code into the box if you received it or click on ‘Not Now’ if you didn’t receive the verification code.
  10. Agree to Google’s Terms of Service and agree to the processing of your information as described in the Privacy Policy and then click on the blue ‘Create Account’ button.
  11. If you’re taken to a screen that shows “As a manager, you can add your business to Google for free” then simply click on the blue ‘Not Now’ link.
  12. You should then be taken to Google’s home page with you logged into the new account that you’ve just set up.

Step 2: Sign in to your Google Account

Please note: If you are already signed in to your Google account, you can skip Step 2 and Go to Step 3

  1. Type: www.google.co.uk into the address bar of your web browser.
  2. Click on the blue ‘Sign in’ button to the top right of Google’s home page. If it doesn’t show the blue ‘Sign in’ button then you may already be logged in so skip to Step 3.
  3. Enter your email address into the box and then click on the blue ‘Next’ button.
  4. Enter the password for your Google account and then click on the blue ‘Next’ button.
  5. That’s it: You’re no logged into your Google account and can go to Step 3.

Step 3: Go to: https://analytics.google.com

Screenshot of Google Analytics Home Page

  1. Type: www.google.co.uk into the address bar of your web browser.
  2. Click on the blue ‘Start measuring’ button in the middle of the page.

Step 4: Set up a Google Analytics account for your site within the Google Analytics Admin area

1. You should be at the https://analytics.google.com/ and you should have clicked on the blue ‘Start measuring’ that was in the centre of that page or if you’re presented with a different page it usually displays ‘Sign in to Analytics’.

2. Please Note: If you already had another Google Analytics account and are logged in, then it’ll display your Google Analytics Admin Dashboard like this:

Screenshot showing the Admin  button in the bottom left hand corner of the page to take you to the Google Analytics admin page
3. Make sure you look for the Admin link with a Cog next to it and click on that. You should then be here:
Screenshot showing the blue '+ Create Account' button used to create a Google Analytics account
4. When you’ve got the screen above displayed in your browser, click on the blue ‘+ Create Account’ button. You should then be presented with this screen:
Screenshot showing the text box where you add the name you want to us for your Google Analytics account
5.Enter the name you want to give to your Analytics account (this could just be the name of your business or website address.
Screenshot showing the blue button that you need to click on next
6. Scoll down and click on the blue ‘Next’ button. You should then be presented with this screen:
Screenshot showing the area where you need to choose between whether you want to track a website, app, or mobile & app
7. Choose whether you want to track either just your website, just your app, or whether you want to track your website & your app. Then click on the blue’Next’ button.
Screenshot show the blue next button that you need to click on after you've chosen whether you want to track a website, app, or website + app
8. Enter your website name or domain name again into the box:
Screenshot showing the boxes where you enter the name of your Google Analytics Property, the

9. Important: The http:// to the left of the Website URL text box is clickable and is a dropdown menu, so if you need to change to https:// because your site uses an SSL certificate, then click on the http:// button and select https://
Screenshot showing the text box where you have to enter the domain name for your website and the dropdown button that lets you choose between either the http:// protocol or the https:// secure protocol
10. Select your Industry Category and correct Reporting Zone (where you are).
Screenshot of select box to choose your Industry Category and correct Timezone for your website. This needs to be the correct timezone for yourself and your business rather than the location that the website is hosted in
11. Click on the blue ‘Create’ button

Screenshot highlighting the Create Property button
12. Next accept the Google Analytics Terms of Service and Measurement Controller-Controller Data Protection Terms by checking the checkbox below each, if you agree to Google’s Terms of Service & Measurement Controller-Controller Data Protection Terms.

Screenshot showing you the checkbox that you have to check in order to agree with Google's terms
13. Then click on the grey ‘I accept’ button as shown below:
Screenshot showing you the checkbox that you have to check in order to agree with Google's terms and the grey 'I accept' button
14. Select and check the email communications boxes if you’re interested in being sent emails from Google and then click on the blue ‘Save’ button.

15. You should now be taken to a page with a Tracking ID heading with a code that starys with this form: ‘UA-XXXXXXXXX-X’.

Step 5: Grab the tracking ID (but keep this page/tab open so that you can come back to it later!)

Screenshot showing where the all important Tracking ID is. Copy this to your clipboard using CTRL+C on Windows or Command+C on Apple Mac
1. You should now be taken to a page with a Tracking ID heading with a code that starts with this form: ‘UA-XXXXXXXXX-X’.

2. If you already had other Google accounts and you need to find the Tracking ID at any time, simply click on the cog icon to the bottom left of the Google Analytics page and choose the account you’d like to find the Tracking ID of, then select the ‘Tracking Info’ link in the Property you want the Tracking ID of and then clicking on ‘Tracking Code’ link below it.

3.Once you’ve found the Tracking ID starting with the ‘UA-XXXXXXXXX-X’ format, you can go onto the next Step.

Step 6: Log in to your WordPress website

  1. In a new web browser tab, go to your WordPress website’s login page and login to your site.
  2. If you have the login details but don’t have the full login URL then it’s usually a case of adding ‘/wp-admin’ to the end of your domain name. For example, www.mywebsitedomainname.co.uk/wp-admin

Step 7: Install GA Google Analytics WordPress plug-in

Screenshot of the the WordPress Dashboard. If you have other plugins installed, yours may look different to this but look for the Plugins menu item in the left hand navigation
1. When you’ve logged in and are being shown the WordPress Dashboard, hover over the ‘Plugins’ item in the navigation on the left and click on ‘Add New’.

Screenshot showing the 'Plugins' and 'Add New' menu item underneath it that you need to click on
2. This should take you to the Add Plugins page with an Upload Plugin button, and then a box with: ‘Featured, Popular, Recommended, Favourites’ with a search box to the right of them like it appears below:

Screenshot showing the text area where you need to search for the Google Analytics plugin that we're gonna search for. Please search for 'GA Google Analytics'

3. Click inside the ‘Search plugins…’ box and search for the plug-in we want to install which is: ‘GA Google Analytics’ and press the enter or return button (depending on the computer you’re on).
Screenshot showing the 'GA Google Analytics' plugin that we want to install. Now click on the Install button and then click on the blue 'Activate' button when it appears.

4. A selection of plugins will appear below the search box and hopefully, one of them will be the GA Google Analytics (which has a red, orange and yellow circular image next to it) and now you should click on the ‘Install Now’ button below the ‘GA Google Analytics’ text. Then once it has installed and a blue ‘Activate’ button has appeared, click on that as shown in the image above!

Step 8: Add tracking code to Settings > Google Analytics

1. Hover over ‘Settings’ in the left-hand side navigation and see a link called ‘Google Analytics’ now so click on that and you will be taken here:
Screenshot showing where the GA Google Analytics settings menu item link is
2. This page contains clickable bars called ‘How to Use’, ‘Plugin Settings’, ‘Restore Defaults’ and the one you need to click on is ‘Plugin Settings’. This will expand the plug-in settings to show this screen:
Screenshot showing the GA Google Analytics plugin's settings page. Click on Plugin Settings as it is an accordion and will expand when you click on it
3. You will see that the top setting available to you is where you want to copy and paste the Tracking ID that we got from Google Analytics (with this format: UA-XXXXXXXXXX-X) here:
Screenshot of the Google Analytics Admin Dashboard and the Tracking ID that you need to copy & paste this into the plugin settings tracking ID box
4. So go back to the Google Analytics tab that I recommended you keep open and select the Tracking ID and copy (Windows: CTRL+C & MacOS: CMD+C) the Tracking ID and paste it in the GA Google Analytics plugin settings (in the Tracking ID box) like is shown here:
Screenshot of the Google Analytics Admin Dashboard and the Tracking ID that you need to copy & paste this into the plugin settings tracking ID box

5. Now there is one more setting in the GA Google Analytics Plugin Settings that I recommend you think about changing and that is the Admin ‘Users’ setting so that you disable tracking admin users on your site as you probably won’t want to track admins for your site as it’ll skew your analytics. So, if you don’t want an admin’s visits (when you’re logged in at least) included in your analytics then check this box:

Screenshot showing the one setting that is recommended for most users so if you don't want to track admin users on your site then make sure you check the ' Disable tracking of Admin-level users' setting

6. All you need to do to finish configuring your WordPress website with Google Analytics is to scroll to the bottom of ‘Plugin Settings’ and clicking on the blue ‘Save Changes’ button in order to save your settings.

Step 9: Test that Google Analytics is being added to your site’s pages

1. In your web browser, go to Google and search for ‘google analytics checker’. This will bring a list of sites that will test that your Google Analytics code is being added to your site’s pages or if you want one that you can go straight to then we recommend trying out:

www.gachecker.com

Use gachecker.com to make sure that your now I have the Google Analytics tracking code on your website
2. When you’re on the gachecker.com website enter your domain name to the text box and click on the green ‘Check Your Site’ button to the right of it. You will then be presented with a list of which of your site’s pages have, or don’t have, your Google Analytics code on. Something like the screenshot below.

3. As you can see from the ticks in the results below, I have Universal Analytics (the UA part of the Tracking ID stands for Universal Analytics) added to my blog category pages & blog posts, it’s disabled on the WordPress login page (as we set it up to do), and isn’t being added to the feed which is something we don’t need:
Screenshot showing the gachecker.com results page. This shows with a green tick for the areas of your WordPress website that has Google Analytics tracking code added

The post How to add Google Analytics to your WordPress website appeared first on Next Level Web Design.

Source link

Leave a Reply

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