Home / E-Marketing News / How to Add Google Analytics to WordPress in 5 Minutes or Less

How to Add Google Analytics to WordPress in 5 Minutes or Less

You want to know whether your blog is doing well, right?

Whether those posts you work so hard on are attracting traffic, and where that traffic is actually coming from?

Whether your last marketing campaign was a smashing success or an unfortunate bomb?

Because if you don’t know whether what you’re doing is working, you’re basically running around blind. And that means you could be wasting valuable time and energy on stuff that just plain ain’t moving the needle.

There’s great news, though …

If you install Google Analytics on your blog, you’ll never have to wonder how your blog is doing again.


Google Analytics is what replaces “I think this works” with “I know this works.”

It tells you where your visitors come from, which posts they just can’t get enough of, and, well … almost anything else you can think of.

Seriously, Google Analytics is like your own personal spy agency for your website.

But here’s the thing:

Google Analytics can only do those things if you can actually get it installed on your WordPress blog.

And that’s why I’m here to lend a helping hand.


Installing Google Analytics is actually quite easy, even if you’re not a tech-head. Honestly, you can have it installed in five minutes or less.

Basically, there are two distinct parts to this process:

|a32eec623ed88b67a4862c24d9d16fdf|: You need to create a Google Analytics account and add your website to Google Analytics. |165fb48fc57622659c22b5df093abd86|. You won’t lay a finger on your site.

|e2240e8d04e55c7e328ae20cc3528ddf|: You need to add the tracking code that Google Analytics gives you to your WordPress site. This is the part that trips a ton of beginners up. No worries, though. We’ll get through it together.

I’ll give you detailed step-by-step instructions for each of these processes below.

Ready? Let’s go …

|f008417eac5006293ac65b75534a6300| If you already have your Google Analytics account set up, and you’re just struggling with adding the tracking code to your WordPress site, go on ahead and skip to Part 2.

Alrighty, the first step in your journey to the goodness of Google Analytics is to actually create your Google Analytics account.

For this, I’m going to assume that you already have a regular ‘ole Google account because, well … you’re on the Internet. If not, you can always create one right now.

To get started with Google Analytics, head here. If you’re not already logged in to your Google account, Google will prompt you to sign in. If you are logged in, you’ll see a signup wizard right away.

Go ahead and click that big |a4325d5745b25a79f4958848373377bb|button on the right:

Sign up for Google Analytics

Next up, you’ll need to add details about your website. Here’s what you’ll need to enter in the |ec7d8fba8b7713f030874ff86bc62e76| section:

  • |057e03f249d17224b4180a8f19376243| — This is just for internal organization. You can enter whatever you want. In my analytics account, I put “Personal Projects” in this box.
  • |8932c0b0ca5dfdb62b02c60befb49d8d| — Again, this is for internal organization. Just enter the name of your website in plain words. For example, “Smart Blogger.”
  • |93d71a10fcecfb74b1a809bafc1c5dc2| — Paste in your website’s URL. The only tricky thing here is to make sure that you choose either http:// or https:// from the drop-down, depending on whether or not you’ve enabled SSL. Just look at the beginning of your URL to figure out which applies to your site.
  • |b558d111737ea7f8c389bc6bdf787f42| — This is optional. Google uses it to help provide tailored reports for your industry. If you don’t see a category that perfectly fits your website, feel free to leave it blank. It’s really not worth stressing over.
  • |a2302d5efc0088f5579a473280f76d01| — Most of the time, you’ll want to set this to your own time zone. But if your target audience has a radically different time zone from your own, it can be helpful to choose the time zone where most of your audience lives so that your analytics sync with their daily life.
Setting Up Your Google Analytics

Once you’ve knocked that out, scroll down to the |078ee3ce46b8bb7490d72d9d41aecde3| options. There are no right or wrong answers here — it just depends on your penchant for privacy.

I’m a grouch on the topic, so I always uncheck every single box. But you can feel free to check and/or uncheck according to your own preferences. And once you’re done deciding how much data to fork over to Google, scroll to the bottom and click that nice blue |aead5cd6b5ed8a2ea1e3b8b031ceccfa| button:

Get Google Analytics Tracking ID

You’re almost there, but first, Google wants you to read their lengthy |4d0d4fbe517d8150a1b7a9525b876954| which, let’s be honest, you probably won’t read (I know I didn’t!).

Once you accept their terms of service, Google will dump you straight into the Google Analytics interface:

Google Analytics Tracking Code and ID

This part of the interface is where you’ll find your |713dea4d4f0a98c060dd9252c9258ef4| and |492c8c9e6e95ad853d645bd13836f24a|.



You have a couple of ways to add the Google Analytics tracking code to your WordPress site, each with its own pros and cons.

You can choose to use the |08bc244d4e465b9eabf83e3a2df0a9ea|, which is the quickest method and does a clean install of the Google Analytics tracking code without any added bells and whistles. This plugin also isn’t limited to Google Analytics, and if you ever need to add more code to your site’s header or footer sections, you can use this plugin for that as well.

Or you can choose the |ae0458c0a3da97724a80b5d714a65033|, which helps you both install the tracking code |73c021dea7137a283a0528d410e3f6f4| view analytics reports inside your WordPress dashboard.

|a6c0c1f0704d9c6d6626f512e5880990|: GADWP isn’t the only plugin that offers this feature. You can choose from a number of quality plugins like MonsterInsights and Analytify. I recommend GADWP, though, because it has a couple of free features — like tracking form submissions and tracking how far visitors scroll down the page — that are only available in the paid version of the others.

The best choice comes down to whether or not you want the ability to view reports inside your WordPress dashboard.

And not everybody agrees on this.

Some find it useful to get a basic sense of your stats without having to leave your WordPress dashboard.

Others feel the reports you get inside your dashboard are too limited, and you end up using the external Google Analytics dashboard anyway, so the widget only clutters things up. On top of this, the Insert Headers and Footers plugin may save you from having to install further plugins down the line, and the fewer plugins you have, the faster your site will be.

If you have any doubts or are struggling to make a decision, |5d462023fa6ec0de701fb356864f647d| You can always switch later without too much fuss. Plus, you can still use the stand-alone Google Analytics dashboard, too.



Okay, so you decided you don’t need to view analytics inside your dashboard, which means you can do a clean install with the Insert Headers and Footers plugin.

Go into your WordPress dashboard and click |589d6b6ea76aa3c53915846860a168b8|. Then search for |d22ae822173459dc1af2fe543a31e6d2|

Once you’ve found the plugin, click the |d28a76e2949e2f75cfd7cfbb1c1defe5| button and it will change to |52106da66a1eae792cea26548e772ea1|. Click |924f8ac5ea4c75252b2bde76343e1850|and you’re good to go.

Insert Headers and Footers Plugin

Once you’ve activated the plugin, go to |bc186af8a532b6a70fdb6ac651a09bbb|in your WordPress dashboard:

Insert Headers and Footers Plugin Dashboard

Remember when I told you you to keep your tracking code handy? |9926f6caa18ae5e1058d948b06b88fc3|.

Head back to the Google Analytics interface and copy the whole script in the |a6bcb9415cc2aefd56709ec698efbe32| box:

Google Analytics Web Tracking Box

If you accidentally closed the tab or skipped the first section, you can always find your Google Analytics tracking code by going to |d0125d4013af24d219e866288591a406|in your Google Analytics dashboard sidebar and clicking |4073dd7dbb351efc72f1f3d9cb0646a3| under the |94c339267642a09521d9b5d8275b1d59| column:

Google Analytics Tracking Info

Okay, you have your tracking code. Now copy it, go back to your WordPress dashboard and paste it into |dc0ddbd2b8055e1b02c9bfa570cdcab9|:

Scripts in Header

Then just save your changes and … |268b2b852371e3f31ce70207cd72d77f|

That wasn’t too painful, right?

Keep reading for a quick and dirty guide to get up and running with the Google Analytics dashboard.


Okay, so you decided you do wish to view reports inside your WordPress dashboard. That means I’ll help you install Google Analytics Dashboard for WP.

And it’s easy. You can install it right from your WordPress dashboard by going to |589d6b6ea76aa3c53915846860a168b8| and searching for |c68e2f8b0e15a70de8a53fc8d66314f7|.

Once you’ve found the plugin, click |3649dc4f087ebbfcdb6011f52ff13151| and then click |52106da66a1eae792cea26548e772ea1|.

Google Analytics Dashboard for WP

Now head to the new |4e706ab374939f238396731c3608cffe| tab in your WordPress dashboard and click the |992d88dab0e7c17b578ae5abdbb1d286| button:

Authorize Google Analytics Plugin

In order for the plugin to show you reports inside your WordPress dashboard, you need to give it permission to access your Google Analytics data. |f6de7d6794673331c01303235c6a15e9|.

Once you click the |613239015c743882227d5043110b44ea|button, the plugin will prompt you to enter your |00183118e78bb9a383a0a91d222b7c88|.

To get your access code, click the red |7a9bb4f4cc37518a361817ed3fb731c6|link:

Get Access Code for Google Analytics

Then you need to |f791289fa391ed58a7d0e687443131f5| the plugin access to your Google Analytics account:

Allow Google Analytics Plugin Access

Once you click the |4207735449ec98aca65b8f1ba93c4787|button, Google Analytics will give you your access code:

Google Analytics Access Code

Copy this code, head back to your WordPress dashboard, and paste the code into the |cb4a4975011d2a1581caf05ddc4a27cb|box. Then, click |98d2f2326904716b3cb70b767aff9528|

Save Google Analytics Access Code

|2d1d64e0a7a12b35047280e4f0666028|You’ll now see an |025abe7d0cc1d52fad87cd0c70052218| widget on your WordPress dashboard homepage. (Yours might be in a different spot than pictured below, but you can move it as you wish.)

Google Analytics WordPress Dashboard

You’ll also see a new |025abe7d0cc1d52fad87cd0c70052218| column for all of your posts and pages.

To access analytics for specific posts, just click on the |5b9cec72943fe9908b0102f05ab18cd4|icon in that column:

Access Google Analytics Per Post

Once you click the |5b9cec72943fe9908b0102f05ab18cd4|button, a lightbox window will pop up with stats for that specific post:

Cool, huh?

Now you might be confused by some of the terms you see — “what the heck is Bounce Rate?” — but no worries, I’ll explain some of the basics below.


Okay, so you’ve installed Google Analytics. Now what?

When you head to your Google Analytics dashboard, you might feel confused by all the different numbers and reports.

Yes, there’s a ton of data in Google Analytics, which can feel overwhelming if you’re new to it and you don’t know what everything means.

To assist with that, I want to introduce you to some basic Google Analytics reports and terminology that can help you understand what’s happening on your site. I’m not promising to make you a Google Analytics expert (there’s a whole academy for that!). But I can get you started on the right path.


When you log in to your Google Analytics dashboard, Google is going to dump a bunch of terminology on you:

Thanks, Google … but what does all that even mean?

Here’s your cheat sheet:

  • |f510fb116309a27cf775e1068617f11a| — The number of unique visitors to your site for the specified time period.
  • |383fb6c56b366dc409470295d7e09e6e| — The number of visits to your site. One User can have multiple Sessions. For that reason, the number of sessions will almost always be higher than the number of Users (and can never be lower).
  • |f0a28404d990e363698895f16a9cf2b5| — The number of people who leave your site without completing any actions. For example, if a visitor immediately clicks the “back” button, that counts as a bounce. Because of how Google Analytics calculates Bounce Rate, a user might still count as a bounce even if they only click the “back” button after spending ten minutes reading your post.
  • |48809469ef73ffb0e703f23929276a10| — How long, on average, each visit to your site lasts. From the screenshot above, you can see that the average visitor spends 48 seconds on my site. Don’t take this number as gospel, though. It can be a bit misleading.

Google Analytics is mind-bendingly deep in functionality. And one of the joys of Google Analytics is finding creative new ways to structure reports and approach your data from different angles.

But if you’re just signing in to Google Analytics for the first time, that doesn’t mean anything to you.

So we’re not getting into all of them here, but let me share some basic reports with you to get your feet wet:


Knowing your visitors’ demographics can provide incredible insight into your audience. Where they’re from, what age they are, what they’re using to access your website. You won’t believe how useful this can be.

For instance, on one of my sites, 80% of my visitors use their computers, while on another, over 80% visit from their smartphones. |61dee61a4633c1af6c9ca2178c3f0693|. And you’d better believe I put a higher emphasis on mobile-friendly content on the second site.

Learning more about your audience’s demographics will help you find little idiosyncrasies like that for your site.

To do it,  head to |8428f77d849cb481965e29788220b7bd|:

You can click on any of the links under the |61287c3be523a1505d792085244c213e| column to see a more detailed report.

For example, if you click on the |6d0876dfcfbe8c74bf17fcdb4a67b219| option under |939d331e10c38eb5549761da386e9356|Google Analytics gives you a breakdown of your visitors’ operating systems:


Do you actually know which posts get the most traffic on your blog?

Don’t guess. Go to |d869971e767a31eb6ac8c5a5da4629a6|and look at the real data|74e24c707d098777a43141fc4bd38762|

Google Analytics Find Most Popular Content

You’ll see all of your most popular content, as well as additional metrics for each piece of content.


Figuring out which content sources drive the most traffic to your site helps you focus your efforts on the channels which deliver the best bang for your buck.

Better yet, you might find some sites sending traffic to you that you never knew existed! Maybe you can reach out to them and form a stronger partnership.

For all those traffic insights (and more!), head to |959144f56296be6645252a6d3f82e89d|

Google Analytics Acquisition Overview

You’ll see a breakdown of the different channels that drive traffic to your site:

  • |bcb01fbd50929776d3b284b635ec777c| — Traffic that finds your site through a search engine.
  • |1592d1dbddc8d3792acffbf374bab863| — Traffic that types your URL directly into their browser’s address bar.
  • |a6c985662dd5f9b472cb25d02afbfa20| — Traffic that finds your site through a link on another website.
  • |493ea4216784272db48beae3242a5495| — Traffic that finds your site through social media.

To see more information about a specific channel, all you need to do is click on it.

For example, if you click on the |a6c985662dd5f9b472cb25d02afbfa20| option, Google Analytics will show you a report of all the websites that drove traffic to your site for the specified time period:

Google Analytics Referral Option

Let’s say you published a guest post on an A-list blog, and you want to see exactly how much traffic it sent you. This report will tell you!

And these reports are just the tip of the iceberg. If you want to know more, check out Casey Kluver’s guide that dives much deeper into various Google Analytics reports.


You’ve just learned how to stop guessing and start knowing. Gone are the days of wondering what’s making your blog and its visitors tick.

Now you’ll have all the relevant data right at your fingertips, ready to pull up at a moment’s notice.

You’ll know which marketing strategies and content work the best, as well as which could use a little rethinking.

That means you can work smarter and build a better, more data-driven blog.

And that, friends, is pretty dang awesome!

|29f455421f2895b2e97443d06ad2623e|: Colin Newcomer is a freelance writer for hire with a background in SEO and affiliate marketing. He helps clients grow their web visibility by writing primarily about digital marketing and WordPress. In his spare time, he travels and curates graphic t-shirts.

Click Here For Original Source Of The Article

Ads by WOW Trk
"Glory is fleeting, but obscurity is forever."
~ Napoleon Bonaparte

About Henry Lake

Over 21 years of Internet Marketing experience with focus on list building. Enjoy sharing ideas with other marketers.

Check Also

Low-Hanging Fruit for the Holiday Season: Four simple marketing changes with significant impact

The goal of optimization is not to make changes to a page but to make changes in the mind of the customer. Here are some simple ways you can shift from communicating company logic to customer logic and optimize the thought sequence of your offer.

The post Low-Hanging Fruit for the Holiday Season: Four simple marketing changes with significant impact appeared first on MarketingExperiments.

%d bloggers like this: