Are you stuck on how to install Google Analytics?

Below we’ve got a helpful guide that takes you through the process of installing Google Analytics so you can start seeing who is coming to your blog

Note: to be able to install Google Analytics on your blog, you have to have the ability to edit the HTML for the header of your blog.

Sign Up

You gotta be in to win, or in this case, in to track. Head over to Google Analytics and sign up for an account with your gmail account by hitting the Sign In button.

If you don’t have a gmail account for you blog, I recommend you get one so you can keep all-things-Google in one spot. It also means you can set up monthly website reports to come to your gmail email.

Get your tracking ID

The Tracking ID is THE thing for Google Analytics. You get given it once you’ve signed up your site, and it needs to be on each page you want tracked – so, ideally all pages.

If you use WordPress or Blogger your site or blog would have likely been created using a template or theme. You’ll want to put the Tracking ID in the HTML of the template file, usually in one called the Head or Header.

Google tells you that your Tracking ID should go directly after the opening of your <body> tag in the code of your template. If you’re comfortable with editing your HTML, do it! Make sure you take a back up of everything first though, just in case something goes wrong. If you are not comfortable with editing HTML – don’t stress we’ve got a hack! You can add it into your sidebar area. Create a new sidebar widget (an HTML/JavaScript one) and paste the code in there.  Make sure that that sidebar widget is displayed on all pages – and it’ll work the same 🙂 Alternatively, if you are in WordPress and are not comfortable, there are plenty of plugins that can insert it for you in the correct place.

Once the tracking code is in, you should leave it for 12-24 hours so Google Analytics can start tracking and start getting data to display. Everything from this date forward will be tracked as long as the code stays in your blog or site.  Note: Unfortunately it’s not possible to view data from before you installed the code.

Now, you can log in at any time and check up on your stats whenever you like!

If you have a self hosted WordPress website, there a multiple plugins you can use. Paul on Twitter reached out to us and recommended one:

Hope you found this guide helpful – let me know in the comments if you have any questions