Google Analytics 4 Features
Page Views
Google Analytics 4 provides page views for your applications.
Event Tracking
Google Analytics 4 provides event tracking for your applications.
Conversion Goals
Google Analytics 4 provides conversion goals for your applications.
User Journeys
Google Analytics 4 provides user journeys for your applications.
E-commerce Tracking
Google Analytics 4 provides e-commerce tracking for your applications.
Custom Dimensions
Google Analytics 4 provides custom dimensions for your applications.
How to Integrate Google Analytics 4
Follow these steps to add this integration to your CreateOS project
Step 1
Create GA4 property in Google Analytics
Step 2
Get your Measurement ID (G-XXXXXXXX)
Step 3
Add NEXT_PUBLIC_GA_MEASUREMENT_ID to environment
Step 4
Add GA script to your layout
Step 5
Configure events and conversions
Step 6
View data in Google Analytics Dashboard
Environment Variables
NEXT_PUBLIC_GA_MEASUREMENT_ID=your_value_hereRelated Integrations
Google Analytics 4 FAQ
Load GA conditionally after user consent. Templates include consent banner components that control tracking initialization.
Yes, use gtag('event', 'event_name', {parameters}) to track any custom events. E-commerce, form submissions, button clicks, etc.