Add Google Analytics to WordPress | Nexcess

Have you ever ever puzzled about your viewers? Needed to know the place guests to your web site lived? How outdated they have been? Google Analytics (typically known as simply “GA”) may help you higher gauge guests and make knowledgeable, data-driven choices relating to your web site.

Preserve studying to learn to add Google Analytics to WordPress.

What Is Google Analytics?

Google Analytics makes use of an online beacon to assemble and collate knowledge about guests to your web site. This free-of-charge service by Google permits you with the instruments you should sift by means of that knowledge and perceive how your prospects behave whereas they go to your web site. Google Analytics additionally affords insights into how one can present a greater buyer journey and buyer expertise.

What Can Be Tracked in Google Analytics?

You could be asking your self, “If I join Google Analytics to WordPress, what will be tracked?” Listed here are just some of the issues that may be tracked.

Geographical Information

Google Analytics can let you see the place your prospects are. You possibly can view by metropolis, by nation, by continent, and by subcontinent.

Supply of Site visitors

When you’ve ever puzzled, “How did my prospects discover me?” Google Analytics will allow you to. Listed here are a couple of varieties of visitors you’ll find in Google Analytics.

  • Direct Site visitors — These are guests who manually typed in your tackle (or, extra probably, clicked on a bookmark).
  • Search Site visitors — These are guests who looked for one thing utilizing Google and clicked in your web site within the search outcomes.
  • Referral Site visitors — These are guests who arrived at your web site by following a hyperlink to your web site from another web site.


Are your prospects viewing your web site by utilizing their cell telephones or their desktop computer systems? Are they utilizing Safari or are they utilizing Chrome? Google Analytics solutions these questions.

Occasion Monitoring

When you’ve added Google Analytics to your WordPress web site, it is possible for you to to trace occasions. We’ve an article that extra totally explains occasion monitoring however right here’s a fast run-down of just some varieties of internet occasions that may be tracked:

  • Web page occasions utilizing the mouse (e.g., the place a customer clicked in your web site).
  • Keyboard occasions (e.g., what a customer typed into frames and varieties in your web site).
  • Body occasions (e.g., when a customer scrolls by means of a body).
  • Kind interactions (e.g., when a consumer provides cost data or proceeds to checkout).

Web page Views

What number of pages did every customer view? What was the common variety of views throughout all guests?

Session Length

Intently associated to Web page Views is Session Length. How lengthy was every customer viewing your web site?

Exit Pages

What web page was a viewer final viewing after they left your web site?


Google Analytics helps you observe conversions. Conversions are when guests to your web site carry out an motion you worth, similar to subscribing to your mailing listing or confirming a purchase order. That is about changing random web site guests into loyal prospects and purchasers, and turning purchasers and prospects into devoted followers.


That is associated to sources of visitors. Google Analytics helps you flip insights into outcomes. Specifically, by linking the Google Adverts and Google Analytics accounts on your web site, you’ll be able to observe which Google Advert Campaigns have been most profitable in bringing guests to your web site, your value per acquisition, and the way a lot every web site conversion prices.


Your web site is your retailer window. Previously often known as “Content material Experiments,” this function of Google Analytics has been expanded and migrated to Google Optimize. You possibly can leverage Google Analytics with Google Optimize to higher perceive split-tests on your WooCommerce web site.

That’s a really, very transient introduction and broad overview of what Google Analytics can observe. For guides, movies, and demos, head over to the official Google Analytics developer portal.

Why Is Google Analytics Vital?

From studying the above listing, you’ve most likely already gleaned a couple of concepts you possibly can use and are possibly now questioning how one can add Google Analytics to WordPress. If not, listed below are a couple of extra options for why you must join Google Analytics to your WordPress or WooCommerce web site.


As recommended above, Google Analytics “simply works” with most different Google platform providers. When you have a Google Play app, you need to use GA to trace the Google Play Referral Stream out of your related WooCommerce web site. When you have an lively AdWords marketing campaign with an e mail marketing campaign element, you’ll be able to align that knowledge to trace what’s working and what isn’t.


Whether or not it’s a brand new sale or a brand new subscription, a brand new conversion is a delight. Whether or not you’ve had a managed WooCommerce web site with us for years, otherwise you’ve simply determined to create your first on-line retailer, understanding why you gained a conversion is true bliss.

Think about you’ve simply bought an sudden rush of recent conversions. Was it that new AdWords marketing campaign? Did your newest Fb marketing campaign usher in these new purchasers? Or possibly it was the humorous tweet out of your school intern? Attribution (now in beta) from Google Analytics will allow you to cease questioning and begin smiling as you higher mannequin the attribution on your conversions.


Recognizing shifts in your web site visitors and conversion charges spotlights new alternatives and helps you higher focus your advertising efforts. For instance, Google Analytics will allow you to break down which social media platforms are simply bringing in new visitors and which platforms are actually additionally bringing new conversions.

Signup with Google Analytics

Merely comply with the directions on the Google Analytics new account web page. They received’t inform you how one can add Google Analytics to WordPress, however they’ll ask some questions on your web site and what varieties of knowledge you’re occupied with monitoring.

Although solely elective, you’ll most likely need to additionally join a Google Tag Supervisor account. Google Tag Supervisor helps you deal with and unify the totally different tags and beacons throughout all of the Google providers (e.g., Analytics, AdWords, Play, and so on.) and Third-party tags (e.g., AdRoll, AdAvisor, Twitter, and so on.).

Set up Google Analytics Utilizing Headers and Footers Plugin

After you’ve created a Google Analytics account and created at the least one monitoring code, you’ll need to know how one can add Google Analytics to WordPress. To allow Google Analytics to begin gathering knowledge, you’ll merely add the tag from Google Analytics to the headers (or footers) of your WordPress web site.

One simple manner so as to add the newly created monitoring code is to make use of the Insert Headers and Footers plugin.

Step 1: Set up and activate the plugin. When you have certainly one of our Managed WordPress or Managed WooCommerce plans, you need to use the Nexcess Plugin Installer.

Step 2: Insert code in your header or footer by going to the Settings > Insert Headers and Footers menu.

Step 3: That’s it! Google Analytics wil now begin gathering knowledge.

Set up Google Analytics in WordPress

After a couple of days, Google Analytics could have sufficient knowledge collected to start providing you insights. Sadly, the official Google Analytics dashboard affords you so a lot knowledge and methods of trying on the knowledge that it collects, it could possibly really feel a bit like ingesting water from a firehose. Many many first-timers to GA will discover a Google Analytics WordPress plugin important to not feeling overwhelmed.

Sadly, there isn’t an official WordPress plugin for Google Analytics. There’s, nonetheless, an official plugin for WooCommerce referred to as WooCommerce Google Analytics. Thankfully, there are fairly a couple of Third-party plugins obtainable. One such plugin is the MonsterInsights plugin.

Whichever plugin you select, the set up directions will likely be just like the MonsterInsights set up directions. The plugin could have a settings part the place you’ll be able to hyperlink the plugin to your Google Analytics account. It will redirect you to your account with Google the place you can be knowledgeable there’s a Third get together app (your new plugin) requesting permissions to entry your account. Click on ‘Enable’ if you need the brand new plugin that will help you together with your Google Analytics knowledge.

That’s it! Now you understand how to place Google Analytics on a WordPress web site.

Making the Most Out of Google Analytics

Whether or not you’re attempting to begin a brand new fan-club or begin a brand new on-line enterprise, you’ll need to take advantage of out of Google Analytics.

Slender Focus — It’s simple to get distracted by the various, many metrics provided by Google Analytics. Have a set of simply 5-10 indicators which can be key to undertaking your targets. Deal with these.

Common Assessment — You’ve invested your invaluable time into figuring out your key metrics and designing customized studies for them. Now, bear in mind to learn the studies. You’ll need to evaluation them weekly. Assessment every day for those who’ve just lately up to date your web site or launched a brand new marketing campaign.

Make Modifications — You’ve recognized your KPI, you learn the studies based mostly on them, now use them. Have you ever seen virtually no change in your metrics since your newest AdWords marketing campaign launched? Strive altering your marketing campaign key phrases. Google Analytics could be a roadmap to success. While you understand you’re driving down the fallacious street, you must change roads.

Google Analytics is extremely highly effective, it’s free, and it’s tremendous simple to put in Google Analytics in your WordPress web site. What are you ready for?

Get Absolutely Managed Internet hosting From Nexcess

Whilst you give attention to getting Google Analytics arrange in your WordPress web site, we’ll fear about the whole lot else. That’s the great thing about managed WordPress internet hosting. Try our internet hosting plans to get began right now.