Here are the most common questions being asked about how to set up Google Analytics.
How do I set up Google Analytics on my website?
There are a number of ways to set up Google Analytics on a website.
Global Site Tag (gtag.js)
This is the method that Google Analytics suggests as the default option after you have created a Google Analytics property.
The instructions are provided along with the code. Typically, if you want to use this option, you need to add this tracking code to the proper template, and Google Analytics will start tracking users and sessions on your website.
This page shows how to adjust the default code for single-page applications.
Google Tag Manager
Google Tag Manager is another option that is suggested when you create your Google Analytics property.
Note that this is the recommended option if you have much analytics and tracking tags. Some people think they only need Google Analytics, but it is important to consider the following:
- Are you going to use AdWords?
- Are you going to use Facebook?
- Do you need any affiliate pixels installed?
- Do other marketing tools that you are going to use have any codes that should be installed on your site?
Most of the popular CMS like WordPress, Shopify, Magento, PrestaShop, Drupal, Joomla and so on offer some plugins for installing Google Analytics. Some of them also have plugins for installing Google Tag Manager.
If you have little or no experience with web development and do not have a webmaster who can help you, using plugins can be a good option for you. Still, if you plan to use more than just the Google Analytics tracking tag, seek out GTM plugins instead of GA.
We hope you’ve found this article useful and that it helped you to properly set-up Google Analytics on your site. If you find Google Analytics a bit overwhelming, you may want to consider some of the alternatives.