How to Install GA4 on Your Website (Multiple Methods)
Install GA4 by adding the gtag.js snippet to your site's <head> section (direct method), deploying a GA4 Configuration tag through Google Tag Manager (recommended), or using platform-specific integrations (Shopify, WordPress Site Kit, Wix, Webflow, Next.js). Your Measurement ID (G-XXXXXXXXXX) from t
Account Setupinstall google analytics 4
Quick Summary
Install GA4 by adding the gtag.js snippet to your site's
section (direct method), deploying a GA4 Configuration tag through Google Tag Manager (recommended), or using platform-specific integrations (Shopify, WordPress Site Kit, Wix, Webflow, Next.js). Your Measurement ID (G-XXXXXXXXXX) from the GA4 data stream settings is the key piece you need. Verify installation using GA4's Real-Time report or DebugView. Enhanced Measurement is enabled by default, automatically tracking page views, scrolls, outbound clicks, site search, video engagement, and file downloads.Overview
Install GA4 by adding the gtag.js snippet to your site's
section (direct method), deploying a GA4 Configuration tag through Google Tag Manager (recommended), or using platform-specific integrations (Shopify, WordPress Site Kit, Wix, Webflow, Next.js). Your Measurement ID (G-XXXXXXXXXX) from the GA4 data stream settings is the key piece you need. Verify installation using GA4's Real-Time report or DebugView. Enhanced Measurement is enabled by default, automatically tracking page views, scrolls, outbound clicks, site search, video engagement, and file downloads.Related Guides
See our complete guide library for detailed coverage of setup, tracking, analysis, and optimisation across all platforms.
Process Flow
Interactive diagram — drag to pan, scroll to zoom
Step-by-Step Guide
Follow these 3 steps to complete this guide
1
Step-by-Step Setup
Access your account or platform. Navigate to the relevant section. Complete each configuration step, testing along the way. Verify your setup using built-in diagnostic tools before relying on the data for decisions.
2
Best Practices
Start with recommended defaults and optimise based on data. Review performance regularly. Make incremental changes. Document your configuration.
3
Common Issues and Solutions
Check the platform's help centre for troubleshooting. Allow 24-48 hours for data to populate. Ensure correct permissions. Verify all integrations are active and properly configured.
Frequently Asked Questions
Common questions about this topic
Was this guide helpful?
Your feedback helps us improve our guides