This page is designed to help Shared Web Hosting users set up the current version of Google Analytics (GA 4) for their websites.
Google Analytics is a free service offered through Google that allows you to collect and analyze detail about visitors to your website pages.
In order to use Google Analytics you will need to set up an account and then connect that account to your website or to individual pages.
Create an Analytics account. Go to google.com/analytics. To create an account, click “Get started today”. If you already have a Google Analytics account, click “Sign in to Analytics”.
Setting up Google Analytics for your website and/or app.
To create a GA Property:
- Once logged into the account, go to the Property column and click “Create a Property”.
- Enter a name for the Property and select a time zone.
- Next select an industry category and business size.
- Click “Create” and accept Google terms of service.
Adding a data stream:
- In the Property column, click “Data Streams” and then “Add Stream”.
- Choose the ‘Web’ data stream setup
- Setting up a Shared Web Hosting website as a Web Stream.
- Enter the website URL, for example ‘depts.washington.edu/your-sitename-here
- Enter a Stream name.
- Modify measurements (optional)
- Click “Create Stream”
- Analytics will respond back with a ‘Global Site Tag’ (G- id number) which will need to be added to your web pages.
- Setting up the global site tag correctly will depend on the type of website you are hosting.
- Open the new Web Stream details and look for the section called “Tagging instructions”.
- Click “Add new on-page tag”.
- Select “Global Site Tag (gtag.js)”
- Follow the instructions to copy and paste the global site tag code snippet.
- For use on a CMS, such as Drupal or WordPress, see: https://support.google.com/analytics/answer/10840722?hl=en&utm_id=ad#cms
Google Analytics for developers: https://developers.google.com/analytics
Further help with Google Analytics: https://support.google.com/analytics#topic=9143232
Although support is not provided, and some of these may not work on Shared Web Hosting, here is an article on open source alternatives to Google Analytics: