Information

You appear to be using an unsupported browser, and it may not be able to display this site properly. You may wish to upgrade your browser.

Google Analytics 4 (GA4)

Advice on the setup of Google Analytics GA4 for Scottish Government Design System sites.

Setup

Google Analytics offers both free and enterprise analytics tools to measure website and app data. The most recent offering is Google Analytics 4 (GA4) and has different setup steps to the older analytics package, Universal Analytics.

These steps assume that you use Google Tag Manager and the Design System tracking script to deliver analytics on your site.

As with any site, after doing all of this you’ll still need to sort out your reporting dashboards, cookies controls, privacy statement, manage your access to your accounts, etc.

Additional reading

Google Analytics 4 (GA4) Checklist – The Complete 2023 Edition (lovesdata.com)

The Traffic Source Challenge in GA4 - Charles Farina's Blog

Help with metrics and dimensions - https://data.ga4spy.com/ and https://ga-dev-tools.google/ga4/dimensions-metrics-explorer/

Back to top