Your heart races as you sit there, staring at your computer with sweaty palms and bated breath. You are painfully aware that your website could benefit from the powerful, FREE, digital marketing tool that is Google Analytics, however, the dread of setting it up seems daunting and is going to once again keep you from taking your site to the next level.

Well, fear not! We here at 4B understand all the apprehensions that come with analytics induced anxiety which is why we have come up with an easy step-by-step guide to setting up Google Analytics like a pro! So take a deep breath, let us help you alleviate your worries, and soon you will be monitoring and analyzing your website’s traffic in no time!

Before we take a swan dive into the tutorial, we want to assure you that we aren’t handing out some untested directions that we regurgitated off of a Google search. This is the same process that we use for our clients here at 4B. It usually gets more complicated from here, but this is the foundation that we rely on. Feel a little better knowing that you are in some safe hands? Of course you do!

Now, first thing is first: you’re going to need a Google Account if you don’t have one already. So go ahead and get that account set up if you need to. We can wait.

Step 1: Setting up Google Analytics

Alright, now that you have a Google Account, you’re going to create a Google Analytics account by simply signing up on the Google Analytics page.

Once you’ve logged in, click Sign Up to set up your NEW ACCOUNT. Now, just follow these short, simple steps as directed:

  1. WHAT WOULD YOU LIKE TO TRACK: Select “Website”
  2. ACCOUNT NAME: this will be your business name (i.e. 4B)
  3. WEBSITE NAME: this will be the name of your website (i.e. 4B.com)
  4. WEBSITE URL: this will be your actual website address (i.e. www.4B.com) BE SURE TO SELECT “HTTP://“ or HTTPS:// whatever is appropriate
  5. INDUSTRY CATEGORY: Select the MOST appropriate category for your business.
  6. REPORTING TIME ZONE: Select the Country and the Time Zone where your business is located

WOOHOO! You have now set up your Google Analytics account and have been gifted with a highly important TRACKING ID NUMBER (the set of numbers that look like UA-000000-1) and TRACKING CODE (the block of code under Website Tracking that begins with <script> and ends with </script>)

Universal Analytics ID and code

Step 2: Adding Google Analytics to Your Site

These codes are unique to your website and should be added to the heading of every page on your site. We recommend setting up Google Tag Manager in order to add these codes to your website, which you should go ahead and do right now.

Installing Google Tag Manager on Your Site

Adding Google Tag Manager to a Shopify Site

Adding Google Tag Manager to a Squarespace Site

Adding Google Tag Manager to WordPress

Adding Google Tag Manager to Wix

That wasn’t so hard, was it? Let’s shed off some more self-doubt, and move on to the next step!

Step 3: Verifying Google Analytics Setup

It is time to ensure that we have set up Google Analytics properly, and for what it’s worth, I am absolutely CERTAIN you set it up swimmingly!

Google Analytics Realtime Menu Option
  1. On your Google Analytics dashboard, click REAL-TIME on the left-hand menu.
  2. In the drop-down, click OVERVIEW
  3. Now, open up another tab (Command + T for you Mac users; Ctrl + T for PC users) enter the URL for your website and go to the homepage.
  4. Head back to your Google Analytics dashboard which will still be on the real-time page.
  5. Wait a minute…

If all went well, you should now see at least one visitor (this would be you) on your page.

SUCCESS! Look how far you’ve come! You’re on your way to running analytics like a pro! Take a victory lap, and when you get back, let’s set up some filters, and views and refine this mutha. Onward, my digital marketing friends!

Step 4: Setting Up Filters in Google Analytics

Setting up Google Analytics was a breeze, eh? Well, why stop there? There are some extra steps you should take to ensure your account is stellar and right now we are going to focus on creating “views” in Analytics so that you can get more accurate data.

Creating a New Filtered View

Setting up a filtered view in Analytics will ensure that you are getting that prized accurate data every good digital marketing pro strives for.

A filtered view will remove any internal traffic (you and your company’s employees) and any spam traffic (the fake visitors, bots and other BS traffic that will skew information and muck up your site’s performance…so it’s obvious now why we set one up, huh? Yup.)

Now, there should ALWAYS be at least two views: your filtered view (what we are setting up now) and a regular view (the initial view) that is pristine and untouched. Info that is going to be captured will start when the filter is activated and you won’t be able to retroactively add or remove the filters at a later time.

Now, let’s go ahead and get the filters fired up!

  1. Head over to the ADMIN section in you Google Analytics Account (this will be the little Wheel/Gear looking icon on the bottom of the left-hand navigation menu…this one)

2. Once you click the ADMIN icon, it will open up a page for you that looks like this.

  1. Click on the blue CREATE VIEW button over in the top right.
  2. Under REPORTING VIEW NAME, name your view (we usually will just name it “Filtered View” followed with the date that the view was set up.)
  3. Select your business’ Time Zone
  4. Click CREATE VIEW

Congrats! You’ve just set up a filtered view! Now let’s….

Filter Out That Internal Traffic

The easiest way to do this is as follows:

  1. From the ADMIN menu, under the CREATE VIEW column, click on FILTERS

2. Click +ADD FILTER

  1. Choose CREATE NEW FILTER
  2. Under FILTER NAME enter something like “Office IP ADDRESS” or “My Home IP ADDRESS” (whichever location of the IP address you will be excluding)
  3. Under FILTERED TYPE choose CUSTOM.
  4. Make sure the EXCLUDE button is selected.
  5. Under the FILTERED FIELD dropdown, select IP ADDRESS
  6. Enter your IP ADDRESS in the field (you can get this info by Googling “My IP Address”)
  7. Click SAVE

Show the Full URL in Google Analytics

Now, when you are looking at your reports for data, your freshly minted Google Analytics account won’t be showing the full URL by default. Having that full URL is will help you figure out if that site visit came in to yourdomain.com vs. blog.yourdomain.com .

In order to get around this default behavior, you will need to set a new filter. Adding this filter is rather painless, but you need to make sure you enter the information listed below correctly.

 

  1. From the ADMIN screen you are going to go to FILTERS then select +ADD FILTER (this part is becoming second nature to you now, huh?)
  2. Under FILTER NAME, put in something simple like “Full URL Filter”
  3. Under FILTER TYPE select CUSTOM then click ADVANCED
  4. For FIELD A, select HOSTNAME from the dropdown and put (.*) in the text field
  5. For FIELD B, select REQUEST URI from the dropdown and put (.*) in the text field
  6. For OUTPUT TO, select REQUEST URI from the dropdown and put $A1$B1 in the text field
  7. Your setup should look exactly like this now:

8. Click SAVE

Make Sure All of Your Page Visits are Consolidated

Of course, showing full URLs is a must in any report, but there is still a chance we could get some inaccurate data as some platforms will show that a URL will have a forward slash (one of these “/” guys) at the end of the URL, where others do not.

This confuses poor Google into thinking that there are TWO different URLs even when they are the same one. ARRGGHHH! So in order to remedy this, you will need to create a new filter (I know, I know…another filter) to add trailing slashes.

Once again, just follow these steps accordingly and everything will be coming up aces!

  1. From ADMIN to FILTERS, select +ADD FILTER
  2. Under FILTER NAME, title this one something along the lines of “Add Trailing Slash to All URLs”
  3. Select CUSTOM, then click ADVANCED
  4. For FIELD A select REQUEST URI from the dropdown menu
  5. In this text field you will need to enter the following regex text as-is: ^(/[a-z0–9/_\-]*[^/])$
  6. For FIELD B leave it empty and make no changes
  7. For OUTPUT TO select REQUEST URI from the dropdown menu, then enter $A1/ in the text field.
  8. It will look like this when entered correctly.

  1. Click SAVE

 

WHEW! And just like that, your filters have been set!

Step 5: Connect Google Search Console

We are almost there! The last step of this entire journey is to get your Google Search Console up so that you can link it to your Google Analytics view. If you’re feeling a little fatigued, take a stretch, think of calm blue oceans, look at a pic of a cute puppy, and once you’ve centered yourself, let’s go ahead and head on over to Google Webmasters Tool because we are going to…

Setup Google Webmaster Search Console

  1. Sign-in to Google Webmaster Tool with your Google username and password.
  2. Under ADD PROPERTY, select WEBSITE from the dropdown menu.
  3. Enter your FULL WEBSITE URL (and be sure to note whether or not your website uses www. or not, and enter it correctly in this field) then click ADD
  4. On the new page, click on the ALTERNATE METHODS tab
  5. Select the GOOGLE TAG MANAGER button then click VERIFY
  6. If all went well (it no doubt did) your site will be verified with Google Search Console.

Connect Google Search Console to Google Analytics

Follow these steps now, and you will be successfully connected:

 

  1. Let’s head back over to Google Analytics.
  2. Click the BAD REFERRERS AND KNOWN BOTS REMOVED view for your website. This is going to take you to your Analytics dashboard.
  3. On the left side, you will see ACQUISITIONS. Go ahead and click that.
  4. Click SEARCH CONSOLE under the ACQUISITIONS tab.
  5. Now click QUERIES under SEARCH CONSOLE
  6. Click SETUP SEARCH CONSOLE DATA SHARING in the next window.
  7. On the next page, it directs you to, scroll to the bottom and click ADJUST SEARCH CONSOLE
  8. Click EDIT under the SEARCH CONSOLE heading.
  9. Select your Search Console site and then click SAVE.

WE ARE ALL SET!
Wow! Look at you! You’ve come a long, long way from when we first started! Now we strongly recommend following up all of this by setting up a Google Search Console account so that you will get the maximum benefits, but other than that you have now successfully set up your Google Analytics and you are a Noob no more! Per Aspera ad Astra!