How To Install Google Analytics On A WordPress Blog Without Using A Plugin

If you’ve been blogging for longer than a few months, you’ve probably heard of the ever so popular site analytics program, Google Analytics.

It allows blog owners to do such things as:

  • Discover how your site visitors found your blog
  • View how many visitors your blog receives each day
  • View areas on your blog where people have clicked
  • . . . and a ton more.

If you blog, it’s inevitable that you are going to try Google Analytics at some point. It really is a great analytics program; however, I must admit that it can seem quite complex at times and if you’re new to the program and you might feel a bit intimidated. In the near future I’ll try to post some examples on how to use the program.

When it comes to plugging Google Analytics into your blog, you have a couple of options available to you.

  1. Download and use a plugin
  2. Copy and paste code into your blog’s footer file

Why I don’t like plugins

Simply put, plugins slow down the load time of your website and also pose security risks which could leave your blog open to intruders. Even if the plugin is secure today, it might not be when a newer version of WordPress is released or if the plugin author abandons the program and stops issuing updates.

In my opinion, the best way (and just as easy) to install this is to simply copy and paste Google’s supplied code into your theme’s footer file. That’s it, no plugin, done and move on.

How To Set Up Google Analytics Without A Plugin

Ok, let’s move on to the tutorial. If you have any questions, feel free to comment below.

Watch The How-To Video

Step 1: Sign up for a new Google Analytics account.

Step 2: Copy the JavaScript code.

During the sign up process you’ll be asked things like your name, email address, etc. At some point, you’ll come to a page that looks like the image seen below. You will will need to copy this code and paste it into your blog.

As a side note, even if you used a plugin to install Google Analytics, you would still need to copy and paste this code at some point; so plugins don’t necessarily make things any easier.

Step 3: Pasting the code into your footer.php file

At this point, log into your WordPress blog and navigate to your theme’s editor by going to Dashboard -> Appearance –> Editor.

Then on the right you should see a list of your theme’s files. Click on the Footer.php file.

Paste the code you copied from Google Analytics just above the ending </body> tag.

Click Update File

And that’s it. No plugins and no worries about updates.

To view your site’s statistics now, log into your Google Analytics account and view your stats. It may take a day or so to start receiving your traffic stats, so if you don’t see it right away, just be patient.

Related posts:
  1. How To Not Track Your Own Visits In Google Analytics – Setting Up A Filter
  2. How To Install WordPress Manually and Why Beginners Should Do It
  3. WordPress Management: Cleaning Up Your Root Folder
  4. How To Upgrade WordPress Manually Video
  5. Hammering Down 2 More Ways To Speed Up Your WordPress Blog

, ,

Want to say thank you? View my Wish List...

3 Responses to “How To Install Google Analytics On A WordPress Blog Without Using A Plugin”

  1. Lee Says:

    Thanks! That’s the clearest explanation of the process I have found. And, I’ve been searching on how to install Google Analytics. Most instructions have not been as clear and as thorough.

  2. John Hoff Says:

    Hello Lee, thanks for the great comment. I’m glad the tutorial was useful :)


Trackbacks/Pingbacks

  1. [...] If you haven’t already set up Google Analytics to run on your blog, here’s how: How To Install Google Analytics On A WordPress Blog Without Using A Plugin [...]

Leave a Reply

CommentLuv Enabled
PHVsPjxsaT48c3Ryb25nPndvb19hZHNfcm90YXRlPC9zdHJvbmc+IC0gdHJ1ZTwvbGk+PGxpPjxzdHJvbmc+d29vX2FkXzMwMF9hZHNlbnNlPC9zdHJvbmc+IC0gPC9saT48bGk+PHN0cm9uZz53b29fYWRfMzAwX2ltYWdlPC9zdHJvbmc+IC0gaHR0cDovL3dwYmxvZ2hvc3QuY29tL2Jsb2cvd3AtZmlsZXMtZ3JlZW5ibG9nL3dwLWNvbnRlbnQvdGhlbWVzL2ZyZXNobmV3cy9pbWFnZXMvZWluc3RlaW5zaG93LWFib3V0LXdwYmxvZ2hvc3QzMDB4MjUwLmpwZzwvbGk+PGxpPjxzdHJvbmc+d29vX2FkXzMwMF91cmw8L3N0cm9uZz4gLSBodHRwOi8vd3d3Lndvb3RoZW1lcy5jb208L2xpPjxsaT48c3Ryb25nPndvb19hZF9pbWFnZV8xPC9zdHJvbmc+IC0gaHR0cDovL3d3dy53b290aGVtZXMuY29tL2Fkcy93b290aGVtZXMtMTI1eDEyNS0xLmdpZjwvbGk+PGxpPjxzdHJvbmc+d29vX2FkX2ltYWdlXzI8L3N0cm9uZz4gLSBodHRwOi8vd3d3Lndvb3RoZW1lcy5jb20vYWRzL3dvb3RoZW1lcy0xMjV4MTI1LTIuZ2lmPC9saT48bGk+PHN0cm9uZz53b29fYWRfaW1hZ2VfMzwvc3Ryb25nPiAtIGh0dHA6Ly93d3c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