is loading...

gif of a loading icon
  • Home
  • How to setup Google Analytics
Website Development

How to setup Google Analytics

Parker Austin | March 23,2022

Google Analytics is a free tool developed by Google that allows you to track essential metrics on people who visit your website. Having this gives you the ability to see where your visitors are leaving so you can optimize your website to hold their attention longer. It also enables you to see geographically where your website visitors are. This is especially useful when doing hyper-local targeting because it lets you know if you are truly hitting the right areas. Using google analytics is a no-brainer since it's free and super powerful. Below, I will show you how to set up your google analytics account step by step. 

1. Not Verifying Your Google My Business listing.

Step 1: Setup Account

Most people already have Gmail accounts, but if you don't already set up your free Google account. Once your free Google account is ready, it's time to go to

  • 1. Click on the "Start for Free" button. 
  • 2. Now you will be prompted to sign in to your Google account.
  • 3. Once you login select, the "Start Measuring" button. 
  • 4. Now you are going to name your account. You will only ever see this. It's also important to know that your account can track up to 50 websites. So you don't need to create an account for every different website you have. 
  • 5. Now add your property name, which is just the name of your website. 
  • 6. Click on advanced settings and click the toggle switch to create a Universal Analytics property. Once you do that, you should add your site's URL.
  • 7. Now you will be asked some basic questions about your business. This helps Google tailor your experience. 

Step 2: Setup Data Stream

Now you will set up a data stream to start collecting the data from your website. You will see three options "web," "Android app," "iOS app" since we are showing you how to set it up for your website, select "web ."Then add your website's URL and enter the name of your site in the "Stream Name" section. 

Once you complete this step, you will be given a measurement ID that has to be connected to your site to start the tracking process. This is a way of essentially proving the ownership of your site. 

Step 3: Add Your Google Analytics Tracking Code To Your Website

On the webstream details page at the bottom, you will see a tab called "tagging instructions" select "Add new on-page tag" to reveal your tracking code. This is a step some people get intimidated by since it involves adding to the source code of your website. It's nothing to be worried about; it's a simple copy and paste. Copy the tracking code and paste it at the bottom of your website's <head> section. Search for </head> that tag indicates the ending of the header section; paste your tracking code right above the tag. Make sure to click enter and paste the tracking code on its own line and then save. 

If you are using WordPress, here are step-by-step instructions on adding your tracking code. 

  • 1. Login to the backend of your website. 
  • 2. Hover your mouse over the "Appearance" tab in the left-hand panel. When you hover over it, a sub-menu will appear there; you will select "Theme Editor."
  • 3. On the right-hand side of the screen, you need to look for the "Theme Header" file (header.php) and select it. This will make the file load onto your screen so you can edit it. 
  • 4. Copy the google analytics tracking code from the data stream section. And pasted the code right before the </head> tag. Make sure you press enter right above the </head> tag, so you paste the tracking code on its own blank line. 
  • 5. Now save the file. 

Step 4:  Make Sure Google Analytics Tracking Code Is Successfully Integrated. 

Once you complete the above step and click save the file, you should receive a confirmation from Google analytics. Usually, everything starts working correctly within the first few minutes. One test you can run is to open up your website in the background of your browser, then navigate to your google analytics and track the real-time visitors. If it accurately states one visitor and shows your location on the map, it is working correctly. Statistics usually don't start appearing until after the first 24 hours, so don't be alarmed if you don't see anything outside of the real-time visitors. If you are still having issues integrating your Google analytics, don't worry. We can help! Reach out to us via our contact form or call us at (321) 335-5155. 


Parker Austin

My name is Parker Austin and I am an expert Wordpress developer. I have been working full time on Wordpress, Shopify, and bootstrap sites since 2014. And have built, developed, or fixed over 500+ sites since then.

Leave a reply

Leave your comment below.