How to Add Google Analytics to Your WordPress Website

Google Analytics

With so many companies running WordPress, I thought we’d take a moment to show you how to add the Google Analytics tracking code to your WordPress website.

During recent web design projects for Sage and Microsoft partners, I’ve noticed a few websites that are missing Google Analytics tracking code because:

1. It was never installed in the first place. Or ..

2. It was installed on the old website but was never migrated to the new WordPress site.  Or ..

3. It was installed at one time but didn’t get transferred over when you changed your WordPress theme recently.

Whatever the reason, Google Analytics provides insight into how much traffic you generate, where that traffic is coming from, how long visitors stay, and so many other important metrics that help you determine what’s working, what’s not, and how to make your Inbound Marketing effort more effective.

Note: New Universal Analytics

Even if you already have Google Analytics running on your website, you might want to consider updating the tracking code to the new Upgraded Universal Analytics. It’s a new innovation in the way that data is collect in Google Analytics which ultimately provides you with even more reports and deeper insight to make informed marketing decisions.

Upgrading to the New Universal Analytics is the same process as described below.

So here we go!

It’s Go Time: Adding Google Analytics Code to WordPress

Here are step-by-step instructions for adding the code to your WordPress website:

1. Login to Google Analytics at

2. Click the Admin menu at the top

Google Analytics Admin Menu

3. Select the appropriate “Account” and “Property” (website) from the drop down menus

Note: you might only have one to choose from which makes it easy. Some of us have multiple accounts/clients/websites in the dropdown options so choose the right one!

4. In the “Property” column (in the middle), click “Tracking Info

5. Under “Tracking Info” click on “Tracking Code” that appears in the dropdown menu

Google Analytics Tracking Code

6. On the next screen in the dialogue box under “This is Your Tracking Code”, highlight and copy everything in the box from the opening <script> bracket to the closing </script> bracket.

Google Analytics Tracking Code

Now Over to Your WordPress Website

Once you have the Google Analytics tracking code/script copied, it’s time to head over to your WordPress website. In most cases, you’ll need Administrator access to perform these steps.

1. Login to WordPress

2. Navigate to your “Theme Settings” or “Theme Options.”

Different theme providers use different terminology. But essentially you’re looking for field that allows you to paste the Google Analytics code in the site-wide header.  Some theme providers will even label the field with a description like “This is where you’d paste your Google Analytics Code.” That makes it easy.

Note: For users of the Genesis WordPress Framework (like us!), go to:

Genesis > Theme Settings > Header and Footer Scripts (field)

Genesis theme settings

Add Analytics Code to Header

3. Click “Save Settings” and you’re done!

Alternative Option: Use a Plugin

If you find this approach (above) too technical or difficult to do, you can always install a Google Analytics plugin for WordPress which creates a nice user-friendly interface and makes it easy just add your Google Analytics account number (no scripts or headers to worry about).

The only drawback is that you now have one more plugin to manage, update, and potentially conflict with your theme or other plugins that are installed which can create real problems.  The fewer plugins you use, the less potential for headaches.

Video: Add Google Analytics in Less Than 60 Seconds

Are you more of a visual learner? Then here’s a video that shows the process of adding Google Analytics to WordPress in less than 60 seconds!

Got Questions?

Leave us a comment below.

6 Steps to Better Blog Posts

Better Blog Posts Tips

Ok the secret is out. Content marketing drives traffic to your website and generates leads for your business.

So your marketing guy says you need to start blogging.  But several months have passed and you’ve spent hours writing articles … but traffic isn’t up, your SEO hasn’t improved, and you feel like nobody is even reading your blog.

So here are a few simple tips to creating better blog posts that just might turn things around.

Continue Reading

Tips to Get the Most Out of Your Customer Success Stories

Customer Success Story Sign

So you’ve got a great success story … maybe even a few of them.  Now what?

Too often, we see fantastic success stories and glowing customer testimonials get shoved to the back of a corporate kit or buried among thousands of files on a network.  Success stories can be fabulous marketing tools if used properly.

Our clients often ask “how do you recommend we use it?” shortly after we’ve finished writing a new customer success story for them. So we thought we’d share a few tips for putting those stories to work.

Continue Reading

5 Reasons Great Content Attracts Leads

Content Marketing

Marketing today is all about content. Whether you’re updating the company website, sending a newsletter, nurturing leads, or using social media, you need great content.

Insightful articles and engaging content creates a dialogue that engages your audience, educates your prospective buyers, and keeps them coming back for more.

Here are 5 reasons that content marketing will attract technology buyers to your company and convert website visitors into leads.

Continue Reading

Google Search Quick Tips for Marketers

Google Search Quick Tips

If you’re still searching for answers the old fashioned way – by just typing a few keywords into Google – you’re seriously missing out.

Google is packed with little-known advanced features designed to help you pinpoint your search and find some really useful content that’s buried beneath the surface.

While there is a big list of advanced search operators built into Google, here are a few that we think are handy and useful.

Continue Reading

Marketing Cartoons: Content Marketing Mistakes

Looking for some comic relief? Created by “marketoonist” Tom Fishburne, these cartoons are a humorous look at some common mistakes when it comes to content marketing. Just click on any of the images to see an expanded/larger version.


1. Where’s Waldo Marketing

Stop throwing time and money at old and ineffective marketing tactics.  You’ll just get lost in the sea of every other company that’s doing the same thing (Buy My Product!).  Learn what speaks to your audience and deliver the content they need to understand how you can solve their problems.

Not Being Agile

Not Being Agile

Continue Reading

Make Your LinkedIn Company Page Work for You

How to Use a Company Page on LinkedInYour LinkedIn Company Page can add tremendous value to your social media marketing efforts. There are so many ERP VARs that have personal profiles on LinkedIn, but many aren’t utilizing the company-level tools and features that LinkedIn has to offer.

In a previous post we shared some basics of creating and using a LinkedIn company page. So here are 4 more ways you can put that new Company page to work for you.

Continue Reading

ERP Channel Marketing – A Few Recent Projects (Q1 2014)

For the past few months, the team at Juice Marketing has been hard at work creating email newsletters, webcast invitations, success stories, and redesigning websites to help ERP and technology partners “squeeze the most out of their marketing dollar.”

Take a look at some of the exciting projects that we’ve been working on lately …

Continue Reading

How to Exclude Your Own Visits in Google Analytics Reports

As many of you already know, Google Analytics is a powerful tool that provides your business with valuable insight regarding website performance. Google Analytics tracks everything from where visitors are coming from and how long they stay on your website, to which pages they visited and for how long.

However, by default Google tracks information on every visitor to your website – including you and your employees.  So in order to get the most accurate representation of your website’s performance and avoid “skewing” the data with your own internal visits/traffic, we recommend that you set up filters to exclude any internal visitors. Here’s how it works.

Continue Reading