How to Add Google Analytics to WordPress

How to Add Google Analytics to WordPress

You’ve just set up a brand new WordPress site and you’re ready to start bringing customers into your business. Weeks have gone by, and you don’t know whether your customers have visited your site, whether your ad spend has really converted into any sales, or how your customers are navigating through your site. If this is you, then it’s time to learn how to add Google Analytics to WordPress and start tracking how your customers use your site.

Google Analytics is a powerful tool that allows you to see how your customers interact with your site. By looking at the data, you’ll have a better understanding of which marketing channels perform best, or if there are landing pages that need to be improved. Let’s get started and teach you how to add Google Analytics to WordPress!

Setting Up Your Tracking ID

First, head over to to get started. Create an account if you haven’t already. You’ll need to fill in the information as it’s related to your account. I filled in a sample here:


Once you have finished, entering in the correct settings, click “Get Tracking ID”.


When you click the button, you’ll be sent to the next page that has your Tracking ID as well as your javascript code you’ll be inserting into your site. If you have a WordPress site, like ours, you’ll be inserting this code into your header.php file just before to </head> tag.  So what you’ll need to do is copy this code:


Inserting Your Tracking ID Into Your Website

Head over to your WordPress Admin page so that we can easily insert it into our header.php.

On a side note: If you have a WordPress theme that receives updates periodically, I suggest not using the method below and instead use a third party plugin, like Monster Insights.

To put in your Tracking ID as simply as possible, go to your WordPress Admin page and go to Appearance->Editor.


When you get to the editor page, select Theme Header on the right sidebar to bring up the header.php editor.


All you need to do is add the javascript code that you copied from analytics and insert it into the code like this:


Next, hit Update File and you’re good to go!


You now have learned how to add Google Analytics to WordPress.  Now that you have Google Analytics tracking your site, you can now set filters and goals. This will let you track exactly what information is relevant to your business.
Consult with your developer to make sure that you’re getting the most out of your marketing campaigns. Using Google Analytics, Google Adwords, and Google Tag Manager will greatly help you achieve your goals. If you’d like to discuss how we can increase your site traffic, please contact us for a free consultation.


Fields marked with an * are required

5 Feng Shui Tips to Create a User-Friendly Site

Feng shui | noun |ˈfəŋ-ˈshwē, -ˈshwā\ : a Chinese system for positioning a building and the objects within a building in a way that is thought to agree with spiritual forces and to bring health and happiness


We’ve all been there. You visit a website expecting to able to navigate through the pages seamlessly, but that’s not the case. Chaos ensues. Viewing a website with unnecessary information and a cluttered interface is like walking into a home of a hoarder. Let’s go through and get rid of everything dispensable and create a minimalistic, user-friendly website.


Make your Front Page Inviting


One of the very first rules of feng shui is having a welcoming front door. The same goes for your website. When your users are visiting your website, it should be clear and inviting. Your front page is your first impression. If it is too cluttered, they’ll move to someone else’s page.


Stay True to your Branding


It’s difficult to create a harmonious environment without sticking to a common theme. Imagine a home that is industrial, bohemian, eclectic, and elegant. Sounds like a total headache, right? Using a million different colors and designs can lead to an anxiety-filled user-experience. Do you have a brand guide? If so, stay loyal to it. If not, create one! A brand guide is crucial to maintaining a balanced website.


Keep your Page an Open Concept


We all know how important it is to still be able see the big game, while making guacamole in the kitchen.  Keep your user’s options in plain sight. This means, keep your menu at the top of your website. If they are taking the time out of their schedule to visit your website, you should present them with the different parts of your website the moment they click on your page. Please, no trapped doors on your website.


Lose the Clutter


Have a pair of jeans you haven’t worn in 10 years? What are they still doing in your closet? It’s time to clear the clutter. Websites are full of out-dated information, ancient blog posts, and useless pages. Go through your site and weed out the parts that aren’t entirely pivotal for your brand. Your users will thank you for providing them with a straight-to-the-point experience.


Fix What’s Broken


Has your drain been clogged for over three weeks? Or perhaps, a doorknob has needed to be replaced still you moved into your house? It takes more energy just thinking about it than just getting it done. For your website, fix those broken pages. Does a specific page need edits, new links, etc.? Just cross it off your to do list, so you are able to focus on improving your site!


While creating your website, Green Eyed Monster Media will obey the rules of feng shui. We want to create a minimalistic website that is true to your brand. Let’s work together to build an interface that provides a seamless user-experience.