Lesson 4 of 10Article18 min
Install GA4 (gtag & GTM)
Install GA4 (gtag & GTM)
01Two common install paths
- gtag.js — paste Measurement ID snippet in the site <head>
- Google Tag Manager — install GTM container, then add a GA4 Configuration tag
02Verification checklist
- Open your site in a private window and click around
- In GA4 → Admin → DebugView (with debug mode) or Reports → Realtime
- Confirm page_view events appear for your hostname
- Check that the Measurement ID matches the property you intend
03WordPress / Shopify notes
CMS plugins can inject GA4 for you. Still verify Realtime — a plugin that “says connected” is not the same as events arriving.