This post may contain affiliate links. Please read my Affiliate Disclaimer.

Google Analytics is a free tool that I recommend to all bloggers who pursue affiliate marketing. It allows you to track anything that happens on your website. And knowing how your readers interact with your site is crucial to the long-term success of your blog.

5 Benefits of Google Analytics

  • Get to know your audience (geographical, screen resolutions, time zones, etc.)
  • Track movements on your site (how long visitors stay on your site)
  • Find out where your visitors come from (search engines, direct links, referral links, etc.
  • Learn more about how your visitors interact with your site (i.e., you can run A/B split tests)
  • Gives you the ability to fine-tune your website for the best ROI (return on investment)

I’ll admit that trying to figure out how to set up Google Analytics and understanding it was confusing to me when I started out. I figured I couldn’t be the only one out there so; hopefully, I can help others.

This guide will teach you how to install Google Analytics for self-hosted WordPress sites (because, that is what I have experience with).

Google Analytics Installation Guide

  1. Create Your  Google Analytics Account

If you already have a Gmail account then sign in with this, I used the Gmail associated with my blog. If you don’t have your own Gmail account yet, then you need to create a (free) account.

Guide to installing Google Analytics, Google login picture

Once you sign-in with your Gmail account you will be able to sign-up for Google Analytics, just type in the address bar. You will now see a box similar to the one above but it will say sign in to continue to Google Analytics, just sign in with your regular Gmail and password. Then it will take you to another page that says,  start analyzing your site’s traffic in 3 steps, click the sign-up button on the right.

2 Google Analytics for your Website or Mobile

The first thing it will ask you is what you would like to track, website or mobile? Majority of people choose the website.

Fill out the other required information such as account name, website URL, category, country, and timezone, etc. Then click “Get Tracking ID.”

3. Install the Google Analytics Tracking Code

Once you have copied the code, go to your WordPress site. Next, there are two options recommended:

1.Get a Plugin such as “Insert Headers and Footers” and then paste your unique Google Analytics code in the plugin settings.

2. Go to your theme’s header.php file and copy the code right before ending </header> tag or straight after the <body> tag. If you have a custom coded site, then you might want to check with your web designer and find out where to add the code.

Once you have completed all three steps, save all the settings on your WordPress site and your new Google Analytics account. Tip:  bookmark it, because you will reference it often.

It will take up to 24 hours until you see some statistics under your reporting tab and get your first set of reports.

Now in case you are a visual learner like me, I found this video tutorial on Youtube.

Do you know anyone who could benefit from this information? How about clicking on one of the social share buttons. Thanks in advance!