How to set up GA4 with GTM on Google Analytics
Set up GA4 with GTM by creating a GA4 property, obtaining the Measurement ID, then configuring a Google Analytics: GA4 Configuration tag in GTM with proper triggers. This allows centralized tag management while maintaining accurate GA4 tracking.
Prerequisites
- Active Google Analytics account
- Google Tag Manager account
- Website admin access
- Basic understanding of tracking codes
Step-by-Step Instructions
Create GA4 Property in Google Analytics
Access Google Tag Manager
<head> section.Create GA4 Configuration Tag
GA4 Config - All Pages.Configure Page View Trigger
Set Up Enhanced Measurement (Optional)
Test Your Configuration
Publish Your Container
GA4 Setup - Initial Configuration and publish your changes. Your GA4 tracking will now be live through GTM.Verify Data Collection
Common Issues & Troubleshooting
GA4 tag not firing in GTM Preview
Check that your trigger is set to All Pages and verify the Measurement ID is correct. Clear browser cache and ensure GTM container code is properly installed on your website.
No data appearing in GA4 reports
Verify your Measurement ID matches exactly between GTM and GA4. Check that your GTM container is published, not just previewed. Data can take 24-48 hours to appear in standard reports.
Duplicate page views being tracked
Ensure you've removed any hardcoded GA4 tracking code from your website when using GTM. Check that you only have one GA4 Configuration tag firing on the same trigger.
Enhanced measurement events not working
Verify Enhanced measurement is enabled in your GA4 Data Stream settings. Some events require specific HTML structures (like video tags for video tracking). Check DebugView to see which events are firing.