YouTube videos that could help you do this task :
How to Set Up a Google Analytics Account :
Install Google Analytics with Google Tag Manager :
Goal: To add Google Analytics to a site using Google Tag Manager and verify that it is working properly.
Ideal Outcome: Google Analytics is properly added without any technical issues.
Pre-requisites or requirements: You can only do this once you have installed Google Tag Manager on your site. If you havenât added Google Tag Manager to your site, you can check out our Google Tag Manager Installation SOPs for WordPress, Shopify, or Squarespace.
Why this is important: Google Analytics is the most popular tool to measure website data to gather visitor insights. With it, you will be able to know the amount of traffic you are getting, and how your visitors are behaving inside your website.
Where this is done: In Google Tag Manager and Google Analytics.
When this is done: Only onceâthe first time you install Google Analytics.
Who does this: The person responsible for website management, or analytics.
- SOP Update: Google Analytics 4
**Note: Google has released a new version of Google Analytics in October 2020, this new version can be set as a property alongside standard version âUniversal Analyticsâ. The âUniversal Analyticsâ properties will likely be supported by Google for years to come, by setting up a Universal Analytics property alongside a Google Analytics 4 property you can take advantage of the stable and documented features of Universal Analytics while still future-proofing yourself with a Google Analytics 4 property. This is the scope of this SOP.
To make sure you can follow this step-by-step SOP make sure you have selected the Universal Analytics property once your Google Analytics account has been created.
- On the top left corner click on the Account Dropdown and select a view within your Universal Analytics property (Not the GA4 property):
**Note: You can identify your Universal Analytics property by noticing the âUA-â prefix in the Property ID below its name:
- Create and set up a Google Analytics Account
- Go to https://analytics.google.com/
- If you are not logged in to your Google account you will be prompted to log in:
- If you are already logged in to your Google Account but you donât yet have a Google Analytics account, you will want to create one now by pressing âSign Upâ:
**Note: Your Google Account can be used for multiple Google services (e.g. Gmail, Adwords, Analytics, etc) but you still have to sign up individually for each service.
- You will now be prompted to fill-in information about your website:
- Account Name:
- If you want to manage multiple websites under this account you might want to have a name here that applies to all websites.
- If you only have one website you might want to type the name of your website, or your business
- Account Data Sharing Settings: Optional data-sharing settings that you can opt-in or out of.
- Click âNextâ
- Property Name: Write a name that will easily identify the exact website youâll be tracking. You can even enter the URL of your website If you wish.
- Reporting Time Zone: Select the Time Zone that you would like to see being used in your reporting. Usually, this will be the time zone where most of your visitors are located.
- Currency: If your website handles transactions, this is where you should select the currency your website uses.
- Click âShow advanced optionsâ (â ď¸ Important Step)
- Click âCreate a Universal Analytics propertyâ and enter the following options:
- Website URL: Select the right protocol for your website (http:// or https://):
- If you donât know what your websiteâs protocol is type your website URL in Google Chrome starting with âhttps://â (e.g. âhttps://clickminded.comâ)
- If you see a green padlock before the URL appearing, it means you should select âhttps://â
- If instead you see a red padlock and a âNot Secureâ message appearing, you will want to select âhttp://â
- Create both a Google Analytics 4 and a Universal Analytics property: Select this option.
- Enable enhanced measurement for Google Analytics property: Yes
- Industry Category / Business Size / How do you intend to use Google Analytics: Select the ones that apply. Donât worry, this will not have a direct impact on your tracking and is an optional field. It is used by Google to help them improve Google Analytics and compile industry averages.
- Scroll down to the bottom and click on: âCreateâ:
- Read and accept the Terms & Conditions:
- You will be sent to the Google Analytics account youâve just created. On the top left corner select your Universal Analytics property (Not the GA4 property):
**Note: In addition to the âGA4â at the end of the Property name (indicating the Google Analytics 4 property), you can also identify your Universal Analytics property by noticing the âUA-â prefix in the Property ID below itâs name:
- Take note of your Google Universal Analytics tracking ID, you will need it for the next steps. This ID will be a code that starts with âUA-â.
- Set up Google Analytics using Google Tag Manager
**Note: If you donât have Google Tag Manager set up on your website, you will want to follow the procedure covered in SOP 004 - Add Google Tag Manager to a Wordpress Site
- Go to http://tagmanager.google.com and sign in with your account details.
- Select the container that is set up on your website.
- Go to âTagsâ:
- Click on âNewâ and rename your tag. It is recommended that it contains a mention to Google Analytics, it makes it easier in the future to locate the tags you are looking for.
- e.g: âGA_TrackingCodeâ
**Note: When creating new tags itâs recommended to define a naming convention from the beginning, this keeps your Google Tag Manager set up neatly organized and easy to maintain for many years to come. [Abbreviated Name Of Tool]_[Use for this tag] is a good start.
- Click on the âTag Configurationâ section â Select âUniversal Analyticsâ:
- Youâre now going to create a âVariableâ where we are going to store the Google Analytics Tracking ID. Click on the âGoogle Analytics Settingsâ selection box, and select âNew VariableâŚâ
- First, copy the Google Analytics Tracking ID (that you took note of in the beginning of this SOP)
- Next rename the variable by clicking on the text on top. (you will want to give it a name that easily identifies what this variable is - e.g. âGA Tracking IDâ)
- Finally, hit âSaveâ
- You will be taken back to the previous menu.
- Now you will want to set up a âTriggerâ for this âTagâ. To do that, click on the âTriggeringâ section, and once the new menu opens click âAll pagesâ:
- You are now ready to save your settings by clicking on âSaveâ:
- If you now click on âOverviewâ on the sidebar, this is how your Google Tag Manager overview dashboard should look like:
- If everything looks ok, you are now ready to hit âSubmitâ
- In the Submission Configuration panel, you will be given the chance to add a name and description to this version. After you have done so, hit âPublishâ.
**Note: Adding a name and description is optional but recommended. You should enter the information here that will make it easy to know what changes are being made.
- You will now be taken to see the summary of the changes youâve just made:
- Verify your set up with Google Tag Assistant
**Note: This step requires Google Chromeâs Google Tag Assistant extension to be installed on your browser.
- Go to your websiteâs homepage
- On your browser click on the Tag Assistant Icon
- You should be able to see a Tag named âGoogle Analyticsâ and your Analytics Tracking ID beneath it (UA-XXXXXXXXX-X)
- Repeat this procedure for a few more pages of your website. You should always be able to see the âGoogle Analyticsâ tag inside Google Tag Assistant.
- Verify your setup inside Google Analytics
- Open Google Analytics by heading over to https://analytics.google.com
- You will be taken to your account Home.
- Close the popup and click on âReal-time Reportâ
- In another Google Chrome tab or window open up your website URL.
- Now go back to the Google Analyticsâ tab and wait a few seconds.
- You should see (at least) 1 active user on the website:
- Adding your first views
**Note: If you have just created your Google Analytics account you will notice you now have one view named âAll Web Site Dataâ. This is alright If you are sure you will not be doing any customizations on your Google Analytics properties.
However, we recommend that you create 3 additional views:
- Main View: This is your go-to view. This is where you will be doing all your analysis and should be working flawlessly. All customizations to Google Analytics should have already been properly tested in the Staging View as not to affect this viewâs data.
- Staging View: This is your Google Analytics sandbox. If you want to test something new but are unsure how it will affect your data (e.g: creating a new filter) you will want to do it here and give it a few days before migrating the changes to the Master View.
- Unfiltered View: This view will be left untouched no matter what. No customizations whatsoever will be done to this view.
With this structure, you will always have a way to recover lost data in case something goes wrong. The unfiltered view will always have all your data. And the âMain Viewâ will have all your filters properly applied.
- Go to your Google Analytics Admin page by clicking here.
- If you have multiple Analytics accounts make sure the right account and property is selected:
- Under âViewâ click on the dropdown box and select âCreate a new viewâ:
- Insert the view details:
**Note: Make sure you select the same âReporting Time Zoneâ you have selected for the other views.
- Weâre now going to create the Staging View. To do that, select the âAll Web Site Dataâ from the dropdown. And click on âView Settingsâ:
- Click âCopy Viewâ
- In the âNew view nameâ field type âStaging Viewâ, and click âCopy Viewâ:
- You should now have these 3 views:
- All we need now is to rename the original view and weâll be done. To do it, select the âAll Web Site Dataâ view.
- Click on âView Settingsâ:
- Click on âView Settingsâ and rename the view name that will now be your âMain Viewâ and hit âSaveâ:
- You should now be able to see your first three views: