• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
The Blog Help
  • Recipe Index
  • Blog
  • Landing Page
  • Instagram
  • About
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
The Blog Help

The Blog Help

Grow Your Niche Blog

  • Recipe Index
  • Blog
  • Landing Page
  • Instagram
  • About
  • Facebook
  • Instagram
  • Pinterest
  • Twitter

How to Install Google Analytics on WordPress and Blogger

June 19, 2015 · Katie Clark ·

how-to-install-google-analytics-wordpress-2014546
Last week when I shared 5 simple steps to starting a blog, I mentioned the importance of installing Google Analytics. This is a great (and powerful) tool that can not only gauge your growth but give you valuable insight into your readers, traffic sources, and much more. There’s lots of reports you can generate that can really help increase your traffic if you interpret them correctly. However, this post is just for those of you looking to get started on how to setup Google Analytics in WordPress AND Blogger (I’ve gotten several emails about setting up Google Analytics, so hopefully this is helpful to a few of you!)
In this post, I will show you how to correctly sign up for Google Analytics, and then correctly install it in both in Blogger or WordPress.org.

Signing up for Google Analytics

Anyone can sign up for Google Analytics. First off, go to http://analytics.google.com, and in the upper right corner, select “Access Google Analytics.”
screen-shot-2015-06-18-at-3-36-07-pm-3836300
As long as you haven’t set up a Google Analytics property before, you will be brought to this screen. Click on the “sign up” button.
screen-shot-2015-06-18-at-3-38-12-pm-e1434687132857-4130308
 
Write all your information here – the name and URL of your website, industry, time zone, etc. After you fill out all this information, you will be able to create your new profile at the bottom of the page.
screen-shot-2015-06-18-at-3-38-35-pm-e1434687162704-2596324
 
Once you click on “Get Tracking ID” you will be prompted to accept the Google Analytics Terms of Service agreement. Press “I Accept” (assuming you do!)
 
screen-shot-2015-06-18-at-3-38-45-pm-e1434746470575-2228727
 
Then you’ll be brought to this page where you will be given both your tracking ID number and the tracking code. Depending on what method you use to install Google Analytics on your site, you will use one of these codes. The tracking id is the shorter version, and the tracking code is longer.
screen-shot-2015-06-18-at-3-38-55-pm-e1434746485315-2419532
 
Don’t feel like you have to write these down right away – you can always access them again by going to Admin (at the top of the page, pictured in blue below.) After you click on that, in the center column is something that says “tracking info.” That’s where the information you need can be found!
screen-shot-2015-06-18-at-3-39-08-pm-e1434748103730-2730863

Installing Google Analytics in WordPress

Now that you are all set up, it’s time to install your tracking code on your site. In WordPress, there are a couple of different ways to do this – it may vary depending on your theme.

Installing Google Analytics in site <head>

Your code needs to be installed in the <head> of your site. This can usually be found in the header.php file of your site (which can be access through Appearance – Editor.) However, unless you feel comfortable editing your website’s files, this can be tricky.
If you are using a StudioPress/Genesis Theme (which I highly recommend doing – it makes life easier), then you can easily paste the Tracking Code (not the tracking ID – the tracking ID is just a few numbers) here. Just go to Genesis – Theme Settings an scroll to the bottom of the page. There is a section that is called “Header and Footer Scripts.” Paste the code there, press save settings, and you should be good to go!
screen-shot-2015-06-19-at-3-12-57-pm-e1434748426496-1814267
If you don’t have Genesis, your theme may have something similar. Just search Google really quick to see. Otherwise, you can install the plugin Header and Footer, which is similar in function to the Genesis header and footer script boxes. Once you install this plugin, it will appear under the WordPress “Settings” section of your site. You can place the Google Analytics tracking code in the <head> section, and you should be good to go.

Google Analytics Plugin

As a general rule, I think that if you can avoid using a plugin on your site, you should. The one I mentioned previously, Header and Footer, is generally pretty lightweight, and it can be very helpful for putting other code in your site. However, many people prefer to use a Google Analytics plugin – some of the ones out there will show you directly on your post dashboard how many page views you are getting, and they can be helpful. A plugin might just be the simplest choice for some.
I would recommend using Google Analytics by Yoast (the free version is just great!) After you install this on your site, it will show up toward the top of your WordPress dashboard, like this:
screen-shot-2015-06-19-at-10-07-15-pm-1337795
Select Dashboard. When you get there, it will say “We need you to authenticate with Google Analytics to use this functionality. If you set your UA-code manually, this won’t work. You can authenticate your Google Analytics profile here to enable dashboards.” Click on the part that says authenticate your Google Analytics profile here. This will give you the option to connect directly to your Google Analytics profile (assuming you are logged into the account connected to it!) There are some other settings in this plugin, but for now, you should be set.

Installing Google Analytics in Blogger

One of the biggest issues I see when I move people from Blogger to WordPress is that they have Google Analytics installed twice on their site. Make sure this doesn’t happen to you! There are a couple of different ways to install Google Analytics, and these are the two I recommend. Remember to pick just one! Often people will install it in their layout area in a widget, which I really don’t recommend doing…so use one of these methods instead!

Installing via Settings

This is by far the easiest method. For it, you will need your tracking code (which looks like this -UA-xxxxxxxx-x…with numbers instead of x’s.)
Go to your Blogger Dashboard and from the dropdown menu, select settings:screen-shot-2015-06-19-at-10-11-15-pm-3642982
 
It will take you to the general settings page, but there will be several options underneath settings on the left side of the page. Select “other” and scroll to the bottom of the page. At this point, you can post your tracking ID. Just put it there, press save settings, and you’re done!
screen-shot-2015-06-19-at-10-11-57-pm-3084011

Installing Google Analytics in site <head>

The next method involves using your tracking code (not the ID). Login to Blogger and in the drop down menu next to your site, select “Template”
screen-shot-2015-06-19-at-10-17-51-pm-9802673
 
On the next page, you will select “Edit HTML”
 
screen-shot-2015-06-19-at-10-18-01-pm-1294911
 
And on this page, you will want to find the <head> tag in all this code. You can either scroll, or you can click in the box with all the code and press either ctrl+f (in Windows) or command+f (in Mac) and search for <head>. Directly underneath that opening tag, add your Google Analytics tracking code, as seen below.
 
screen-shot-2015-06-19-at-10-18-29-pm-4107868
 
Now hopefully you were able to successfully install Google Analytics! Let me know if you have any questions!

Beginning Blogger, Tech Support

Previous Post: « How I Monetize Our Blog – The Details
Next Post: 5 Ways to Improve Your Blog to Increase Blog Traffic »

Primary Sidebar

Welcome to The Blog Help

We help bloggers like you find success!

  • Facebook
  • Instagram
  • Pinterest
  • Twitter

CATEGORIES

  • Affiliate Marketing
  • Beginning Blogger
  • Blogging
  • Blogging Tips
  • Course Review
  • Courses
  • Email Newsletters
  • General
  • Growing Your Blog
  • Hiring Help
  • Monetization
  • Popular
  • SEO
  • Social Media
  • Sponsored Posts
  • Tech Support
  • Time Management
  • Tips & Tricks
  • Traffic Generation & Growth
  • Uncategorized
  • WordPress
  • Work-Life Balance

Footer

The Blog Help

Successful Niche Blogging Training

  • Facebook
  • Instagram
  • Pinterest
  • Twitter

SEARCH THIS SITE

Niche Blogging Tips

Never miss a tip - get access to our exclusive niche blogging tips today!

CATEGORIES

  • Affiliate Marketing
  • Beginning Blogger
  • Blogging
  • Blogging Tips
  • Course Review
  • Courses
  • Email Newsletters
  • General
  • Growing Your Blog
  • Hiring Help
  • Monetization
  • Popular
  • SEO
  • Social Media
  • Sponsored Posts
  • Tech Support
  • Time Management
  • Tips & Tricks
  • Traffic Generation & Growth
  • Uncategorized
  • WordPress
  • Work-Life Balance
  • Recipe Index
  • Block Content
  • Landing Page
  • Gutenberg Optimized
  • Contact
  • About

Copyright © 2024 · Recipe Blogger Theme · Genesis Framework · Privacy Policy · WordPress · Log in