How to Set Up GA4 Through Google Tag Manager
In GTM, create a new tag with type 'Google Analytics: GA4 Configuration' (or 'Google Tag' in newer GTM). Enter your GA4 Measurement ID (G-XXXXXXXXXX). Set the trigger to 'All Pages.' This deploys the base GA4 tracking on every page. For custom events, create additional GA4 Event tags with specific e
Quick Summary
In GTM, create a new tag with type 'Google Analytics: GA4 Configuration' (or 'Google Tag' in newer GTM). Enter your GA4 Measurement ID (G-XXXXXXXXXX). Set the trigger to 'All Pages.' This deploys the base GA4 tracking on every page. For custom events, create additional GA4 Event tags with specific event names and parameters, triggered by the appropriate GTM triggers. Test in Preview Mode, verify in GA4's DebugView, then publish.
Overview
In GTM, create a new tag with type 'Google Analytics: GA4 Configuration' (or 'Google Tag' in newer GTM). Enter your GA4 Measurement ID (G-XXXXXXXXXX). Set the trigger to 'All Pages.' This deploys the base GA4 tracking on every page. For custom events, create additional GA4 Event tags with specific event names and parameters, triggered by the appropriate GTM triggers. Test in Preview Mode, verify in GA4's DebugView, then publish.
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
Step-by-Step Setup
Best Practices
Common Issues and Solutions
Frequently Asked Questions
Common questions about this topic
Was this guide helpful?
Your feedback helps us improve our guides