In this guide you will learn how to setup a Google Analytics account and add the tracking code to your website.
Jump to section:
What is Google Analytics?
With Google Analytics you can collect information on how people use your website. You can see how long people spend on your website, what are your most popular pages, how people get to your website, and much more.
The core of Google Analytics allows you to see how well your website performs.
1. Setup your account on Google Analytics
You will need a Google account. If you haven’t got a Google account, you can set one up easily in less than 5 minutes here – you can even use your current email address if you prefer.
You first need to go to the Google Analytics website. From here, you need to login with your Google account.
Now you will be asked to create an account. The first step is to name your account. Best practice is to name the account the same as your business.
You then need to go through the Account Data Sharing Settings. These settings help with your account and share your data with Google, this way they can help out with any problems you have and provide technical support.
We recommend that you check all the boxes. From here, click the Next button. You now move to step 2.
2. What you want to measure
In July 2019, Google announced a new feature for Analytics. You can now track data from a; website, app, or both.
For this setup, you will want to continue with the Web option selected.
3. Property details
The final step of the Analytics account setup is the Property details. Here you need to enter the name of your website and your website’s URL. There is an option to select if your website begins with http or https – you need to add your website URL starting with ‘www’ in the field.
You can also select an Industry Category and Reporting Time Zone.
Once you have added your details, click the Create button. Read and accept the terms and conditions, and now your account is setup. You will be sent to the Tracking ID screen.
What is the Tracking ID?
The Tracking ID code tells Google which account and property to send your website data to.
What is the Global Site Tag?
The Global Site Tag is the actual code you need to add to your website, so you can track the data and performance.
4. Adding your Google Analytics code to your website
You need to add the Global Site Tag to your website. You need to add this code to the <head> section. This is not as complicated as it sounds, but if you are unsure you can always ask your website manager.
Some website providers will have a specific section, and all you will need to do is add your Tracking ID. We recommend using the full Global Site Tag.
Through many website builders, you should be able to find a section on your website dashboard for Google Analytics, where you can paste the code. But if you are using a wordpress website, we recommend a plug-in called Embed Code, by DesignBombs.
This plug-in will set up an easy section for you to add your tracking code. Search for the plug-in and add it to your wordpress site. This will add a new section in your wordpress settings.
Go to your settings and select Embed Code. Here you will be shown 2 boxes, one for the Head Code, and one for the Footer code. You can put your tracking code in here, and it will apply to you entire website.
Go to Google Analytics and copy the Global Site Tag. Go to your wordpress website, go to settings, and go to Embed Code. Paste your Global Site Tag in the Head Code box, and save changes.
5. Check your tracking is working
Go to your website in an incognito tab, and open your Google Analytics account in a normal tab. On Google Analytics, go to the ‘realtime’ report in the left side menu. From here click ‘overview’. You should see that there is at least 1 active user (you) on your website.
That’s it! You have now setup your Google Analytics account, and are now tracking the users and traffic on your website.
Now you can start to track your website’s performance – know someone else who could benefit from this? Share it with them ⬇