GA4 Setup in 30 Minutes: Events, Conversions & Reporting (2026)
GA4 Setup in 30 Minutes: Events, Conversions & Reporting (2026)
Looking to master GA4 setup? This comprehensive Google Analytics↗ 4 tutorial covers everything from initial configuration to advanced tracking implementation. Whether you're migrating from Universal Analytics or setting up GA4 for the first time, this guide provides step-by-step instructions for complete GA4 implementation.
TL;DR — Set up GA4 in 30 minutes with these 6 steps:
- Create property — Admin > Create Property (3 min)
- Install tracking — GTM↗ tag or gtag.js (5 min)
- Configure events — Mark purchase + lead as conversions (5 min)
- Set up audiences — Create 3 core audiences for remarketing (7 min)
- Build first report — Acquisition overview + date comparison (5 min)
- Verify — Realtime report + DebugView (5 min) Don't skip: Enhanced Measurement, Data Retention (14 months), and Google Signals Reading time: 25 min | Last updated: March 2026
Don't want to DIY? Let our analytics team set up GA4 for you — correctly configured events, conversions, and dashboards, done in 48 hours. Starting at $299.
Google Analytics 4 (GA4) represents a fundamental shift in how businesses approach web analytics tracking. The GA4 Help Center↗ is the official reference, but this guide distills the practical steps you actually need. Unlike its predecessor, GA4 uses an event-based data model that provides more flexible, comprehensive insights into user behavior across websites and mobile applications. This complete GA4 setup guide will walk you through every aspect of implementation, ensuring you capture the data needed for informed decision-making.
Ready to implement GA4? Skip to our step-by-step setup instructions and start tracking today.
Table of Contents
- Understanding GA4
- GA4 vs Universal Analytics Comparison
- Initial Setup
- Data Collection Configuration
- Event Tracking Setup
- E-commerce Tracking
- Industry-Specific GA4 Setup
- Conversion Configuration
- Audience and Reporting
- Integrations and Advanced Features
- Testing and Validation
- GA4 Best Practices
- FAQ
Understanding GA4
What is Google Analytics 4?
Google Analytics 4 is the next-generation analytics platform from Google, designed for the privacy-first, cross-platform digital landscape. Released in October 2020 and made the default property type in 2023, GA4 replaces Universal Analytics with a fundamentally different approach to data collection and analysis.
Core GA4 Philosophy:
- Event-based tracking: Every interaction is an event
- User-centric measurement: Focus on individual user journeys
- Privacy by design: Built for a cookieless future
- Cross-platform unified: Web and app data in one property
- AI-powered insights: Machine learning for predictions and anomalies
Why GA4 Matters for Your Business
The transition to GA4 isn't just a platform upgrade—it's a strategic necessity for modern analytics:
| Business Impact | GA4 Advantage |
|---|---|
| Privacy Compliance | Built-in consent mode and data deletion controls |
| Cross-Device Tracking | Unified user identification across platforms |
| Predictive Analytics | AI-powered purchase and churn predictions |
| Flexible Reporting | Custom explorations instead of rigid reports |
| Future-Proofing | Designed for the post-cookie era |
GA4 vs Universal Analytics Comparison
Understanding the differences between GA4 and Universal Analytics is crucial for successful migration and implementation.
Data Model Comparison
| Feature | Universal Analytics | Google Analytics 4 |
|---|---|---|
| Data Model | Session-based | Event-based |
| User Tracking | Client ID (cookies) | Multiple identifiers (User ID, Device ID, Modeling) |
| Cross-Platform | Requires separate properties | Native unified tracking |
| Machine Learning | Limited automated insights | Built-in predictive metrics |
| Reporting Interface | Pre-defined reports | Flexible Explorations + standard reports |
| Data Retention | 26-50 months (configurable) | 2-14 months (standard) |
| Hit Types | Pageview, event, transaction, timing | All interactions are events |
| Bounce Rate | Traditional bounce rate | Engagement rate (inverted metric) |
| Goals | Up to 20 goals per view | Unlimited conversions |
| E-commerce | Enhanced Ecommerce plugin | Built-in e-commerce events |
Key GA4 Concepts for Implementation
Event-Based Model: In GA4, everything is an event. This unified approach simplifies tracking:
| Universal Analytics | GA4 Equivalent |
|---|---|
| Pageview | page_view event |
| Event (category/action/label) | Custom event with parameters |
| Transaction | purchase event |
| Social interaction | share event |
| User timing | Custom event with timing parameter |
User Identification Hierarchy:
GA4 User Identification Priority:
1. User ID (signed-in users) - Most accurate
2. Google Signals (signed-in Google users)
3. Device ID (first-party cookies)
4. Modeling (for unidentifiable users) - Privacy-safe estimation
Data Streams: GA4 organizes data collection through streams:
- Web Stream: Websites and web applications
- iOS Stream: Apple mobile applications
- Android Stream: Android mobile applications
🔗 Related: Google Tag Manager Setup Guide - Learn how to implement GA4 through GTM for maximum flexibility.
Initial Setup
Creating Your GA4 Property
Follow these steps to create your Google Analytics 4 property:
Step 1: Account and Property Setup
- Navigate to analytics.google.com↗
- Click the gear icon (Admin) in the bottom left
- In the Property column, click "Create Property"
- Enter your property name (typically your business name)
- Select your reporting time zone
- Choose your currency for revenue reporting
- Click "Next"
Step 2: Business Information Configuration
- Select your industry category from the dropdown
- Choose your business size (number of employees)
- Select your intended use cases for GA4:
- Measure customer engagement
- Optimize advertising ROI
- Analyze user behavior
- Improve user experience
- Click "Create" to finalize the property
Step 3: Data Stream Configuration
- Select your platform type:
- Web: For websites and web apps
- iOS: For Apple mobile applications
- Android: For Android mobile applications
- For web streams:
- Enter your website URL
- Enter your stream name
- Enable Enhanced Measurement (recommended)
- Click "Create stream"
- Copy your Measurement ID (G-XXXXXXXXXX format)
Installing GA4: Three Methods
Choose the installation method that best fits your technical setup:
Method 1: Global Site Tag (gtag.js)
Direct implementation for simple setups:
<!-- Google tag (gtag.js) - Place in <head> of all pages -->
Pros: Simple implementation, no additional tools needed Cons: Harder to maintain, requires code changes for updates
Method 2 (Recommended): GA4 via Google Tag Manager — Complete Walkthrough
Google Tag Manager↗ (GTM) is the professional approach for scalable tracking. It separates your tracking configuration from your website code, meaning marketers can add, modify, or remove tracking tags without waiting for a developer. Here is the complete step-by-step process.
Step 1: Create a GTM Account and Container Go to tagmanager.google.com↗ and click "Create Account." Enter your company name, select your country, enter a container name (typically your website URL), and select "Web" as the target platform. Accept the Terms of Service.
Step 2: Install the GTM Snippet on Your Website
GTM gives you two code snippets. Place the first snippet (<script> tag) as high in the <head> section as possible. Place the second snippet (<noscript> tag) immediately after the opening <body> tag. For Next.js applications, add the script tag in your root layout file using the next/script component with strategy="afterInteractive", and add the noscript iframe in the body. For WordPress, use a plugin like "Insert Headers and Footers" or add the code to your theme's header.php.
Step 3: Create the GA4 Configuration Tag In your GTM workspace, click "Tags" > "New." Name the tag "GA4 - Configuration." Click "Tag Configuration" and select "Google Analytics: GA4 Configuration." Enter your Measurement ID (G-XXXXXXXXXX format — find it in GA4 under Admin > Data Streams). Set the trigger to "All Pages" (this fires the tag on every page load). Save the tag.
Step 4: Create Custom Event Tags
For tracking specific interactions beyond what Enhanced Measurement covers, create event tags. Click "Tags" > "New" > "Google Analytics: GA4 Event." Set the Configuration Tag to your GA4 Configuration tag. Enter the event name (e.g., cta_click) and add event parameters as needed (e.g., button_text: {{Click Text}}). Create a trigger — for example, a Click trigger that fires when users click elements matching a specific CSS selector like .cta-button. This approach lets you track any interaction without touching your website code.
Step 5: Preview, Test, and Publish Click "Preview" to open GTM's debug mode. Navigate your website and verify that tags fire correctly — you should see your GA4 Configuration tag firing on every page, and event tags firing on the appropriate interactions. Check GA4's DebugView (Configure > DebugView) to confirm events arrive with the correct parameters. Once verified, go back to GTM, click "Submit," add a version name and description, and publish.
Common GTM Troubleshooting:
- Tags not firing: Check your trigger conditions — CSS selectors are case-sensitive and must match exactly
- Duplicate page views: Ensure you only have one GA4 Configuration tag with "Send a page view event" enabled
- Events not appearing in GA4: Wait 24-48 hours for standard reports; use DebugView for immediate verification
- Next.js SPA issues: Enable the "Page changes based on browser history events" Enhanced Measurement setting to track client-side route changes
Pros: Centralized management, version control, no code changes needed for new tags Cons: Requires GTM knowledge, additional tool to manage
| Installation Method | Best For | Complexity | Flexibility |
|---|---|---|---|
| gtag.js | Simple websites, single-page sites | Low | Limited |
| Google Tag Manager | Complex sites, frequent updates | Medium | High |
| CMS Integration | WordPress, Shopify, Wix users | Low | Medium |
Method 3: CMS Integration
WordPress GA4 Setup:
- Install GA plugin (Site Kit by Google, MonsterInsights, or ExactMetrics)
- Connect your Google account
- Select your GA4 property
- Verify tracking in Real-time reports
Shopify GA4 Setup:
- Go to Online Store → Preferences
- Enter your GA4 Measurement ID in the Google Analytics section
- Enable Enhanced Ecommerce for transaction tracking
Wix GA4 Setup:
- Marketing & SEO↗ → Marketing Integrations
- Connect Google Analytics
- Enter your Measurement ID
📊 Need help with GA4 setup? Our team provides professional GA4 implementation services for businesses of all sizes.
GA4 Configuration Checklist
Basic Setup Verification:
- GA4 property created with correct time zone and currency
- Data stream configured for your platform
- Measurement ID noted (G-XXXXXXXXXX format)
- Tracking code installed on all pages
- Real-time data appearing in reports
- Enhanced Measurement enabled
Advanced Setup Preparation:
- Cross-domain tracking requirements identified
- User ID implementation strategy planned
- Custom dimensions and metrics documented
- Data retention settings configured
- Internal traffic filters created
- Google Signals enabled (where compliant)
Data Collection Configuration
Enhanced Measurement Setup
Enhanced Measurement automatically tracks common user interactions without additional code:
| Enhanced Feature | Description | When It Fires | Recommended Setting |
|---|---|---|---|
| Page views | Automatic page tracking | On every page load | ✅ Enable |
| Scrolls | Scroll depth tracking | When user reaches 90% depth | ✅ Enable |
| Outbound clicks | External link clicks | Click on link to external domain | ✅ Enable |
| Site search | Internal search tracking | Search query parameter detected | ✅ Enable |
| Video engagement | YouTube video interactions | Play, pause, complete events | ✅ Enable |
| File downloads | Download link tracking | Click on common file extensions | ✅ Enable |
| Form interactions | Form engagement tracking | Form start and submit events | ⚠️ Review* |
| Page changes | Single-page app navigation | History API changes | ✅ Enable for SPAs |
*Form interactions may generate excessive events on some sites—test before enabling in production.
Configure Enhanced Measurement:
- Admin → Data Streams → Select your web stream
- Click the gear icon under "Enhanced measurement"
- Toggle features on/off as needed
- Click "Save"
Data Retention and Privacy Settings
Data Retention Configuration:
| Setting | Options | Recommendation |
|---|---|---|
| Event Data Retention | 2 months, 14 months | 14 months (maximum) |
| Reset User Data | On request, Never | Based on privacy policy |
| User-ID Data | 2 months, 14 months | 14 months |
To Configure: Admin → Data Settings → Data Retention
Privacy Controls:
- Consent Mode: Respects user consent choices
- Data Deletion: User-level data removal
- IP Anonymization: Automatic in GA4
- Ads Personalization: Configurable by region
Consent Mode v2 Setup (Required for EU Traffic)
If your website receives any traffic from the European Union, Consent Mode v2 is no longer optional — Google requires it for accurate measurement and continued access to advertising features like remarketing and conversion modeling. Here is what you need to know and how to set it up.
What is Consent Mode v2?
Consent Mode↗ is a framework that adjusts how Google tags behave based on the user's cookie consent choices. When a user declines cookies, Consent Mode sends cookieless pings to Google instead of dropping the user entirely. Google then uses machine learning to model the missing conversions and fill in the gaps. Version 2, released in late 2024, adds two new required consent signals: ad_user_data and ad_personalization, giving users more granular control.
Basic vs Advanced Mode:
- Basic Mode: Google tags do not fire at all until the user grants consent. Simple to implement but you lose all data from users who decline — typically 30% to 50% of EU traffic.
- Advanced Mode (Recommended): Google tags fire in a limited, cookieless state before consent. This sends anonymous pings that enable Google's behavioral modeling to recover approximately 70% of the data you would otherwise lose. No personal data is collected without consent.
GTM Setup Steps (Advanced Mode):
-
Install a Consent Management Platform (CMP): Choose a Google-certified CMP. Cookiebot offers a free plan for sites under 100 pages and integrates natively with GTM. Other options include OneTrust, Usercentrics, and CookieYes.
-
Set Default Consent State in GTM: Create a "Consent Initialization" tag (fires before all other tags) that sets the default consent state for your EU traffic:
gtag('consent', 'default', {
'analytics_storage': 'denied',
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'wait_for_update': 500,
'region': ['EU', 'EEA']
});
-
Configure Consent Update: When the user interacts with your CMP banner and grants consent, your CMP fires a consent update that changes the relevant signals to "granted." Most certified CMPs handle this automatically through their GTM templates.
-
Verify in GA4: Check Admin > Data Streams > your stream > "Consent settings" to confirm Consent Mode is active. In GA4 reports, you will see a "Consent" badge next to metrics where modeling is applied.
Data Impact Summary:
| Mode | EU Traffic Data Recovery | Implementation Effort |
|---|---|---|
| No Consent Mode | ~50-60% of EU data (only consenting users) | None |
| Basic Mode | ~50-60% of EU data (same, but compliant) | Low |
| Advanced Mode | ~85-90% of EU data (with modeling) | Medium |
For most businesses, Advanced Mode with Cookiebot (free tier) provides the best balance of compliance and data quality. If you need help with implementation, our tracking service includes Consent Mode v2 setup as part of the standard package.
Google Signals Configuration
Google Signals↗ enables powerful cross-device tracking and audience features:
Benefits of Enabling Google Signals:
- Cross-device user tracking
- Demographics reporting (age, gender)
- Interest category data
- Remarketing audience creation
- Enhanced advertising reporting
Enable Google Signals:
- Admin → Data Settings → Data Collection
- Click "Get Started" under Google Signals
- Accept terms of service
- Toggle "Enable Google Signals" to ON
Important Privacy Note: Google Signals requires user consent in many jurisdictions (GDPR, CCPA). Ensure your consent management platform is properly configured.
Data Filters Implementation
Internal Traffic Filter: Exclude your team's activity from reports:
-
Define Internal Traffic:
- Admin → Data Streams → Web Stream Details
- Click "Configure Tag Settings"
- Click "Show all" → "Define Internal Traffic"
- Add IP addresses or IP ranges for your office/VPN
-
Create Data Filter:
- Admin → Data Settings → Data Filters
- Click "Create Filter"
- Filter Name: "Exclude Internal Traffic"
- Filter Type: Internal traffic
- Filter Operation: Exclude
- Traffic Type: internal (matches your definition)
Developer Traffic Filter: Automatically exclude debug mode traffic:
- Create filter for "Developer Traffic"
- Set to exclude when "debug_mode" parameter is true
Event Tracking Setup
Automatically Collected Events
GA4 automatically tracks these events without configuration:
| Event Name | Trigger Condition | Use Case |
|---|---|---|
page_view | Page loads or history state changes | Basic traffic measurement |
session_start | New session begins | Session counting |
first_visit | User's first visit to property | New user identification |
user_engagement | User engages with page (10+ seconds) | Engagement measurement |
scroll | 90% vertical scroll depth | Content engagement |
click | Outbound link clicks | External navigation tracking |
view_search_results | Site search performed | Search behavior analysis |
video_start | Video playback begins | Video engagement start |
video_complete | Video finishes playing | Video completion tracking |
file_download | File download initiated | Content download tracking |
form_start | Form interaction begins | Form engagement start |
form_submit | Form successfully submitted | Form completion tracking |
Recommended Events for GA4
Implement these events for comprehensive tracking across common business scenarios:
E-commerce Events
// View item details
gtag('event', 'view_item', {
currency: 'USD',
value: 99.99,
items: [{
item_id: 'SKU_12345',
item_name: 'Premium Widget Pro',
item_category: 'Widgets',
item_category2: 'Professional Grade',
item_brand: 'WidgetCo',
price: 99.99,
quantity: 1
}]
});
// Add to cart action
gtag('event', 'add_to_cart', {
currency: 'USD',
value: 99.99,
items: [{
item_id: 'SKU_12345',
item_name: 'Premium Widget Pro',
item_category: 'Widgets',
price: 99.99,
quantity: 1
}]
});
// Begin checkout process
gtag('event', 'begin_checkout', {
currency: 'USD',
value: 199.98,
coupon: 'SUMMER20',
items: [{
item_id: 'SKU_12345',
item_name: 'Premium Widget Pro',
price: 99.99,
quantity: 2
}]
});
// Complete purchase
gtag('event', 'purchase', {
transaction_id: 'T_12345',
affiliation: 'Online Store',
value: 199.98,
tax: 16.00,
shipping: 10.00,
currency: 'USD',
coupon: 'SUMMER20',
items: [{
item_id: 'SKU_12345',
item_name: 'Premium Widget Pro',
item_category: 'Widgets',
item_brand: 'WidgetCo',
price: 99.99,
quantity: 2
}]
});
Lead Generation Events
// Lead form submission
gtag('event', 'generate_lead', {
currency: 'USD',
value: 50.00 // Estimated lead value
});
// Contact form submission
gtag('event', 'submit_form', {
form_id: 'contact_form',
form_name: 'Contact Us',
form_destination: '/thank-you-contact'
});
User Engagement Events
// User registration
gtag('event', 'sign_up', {
method: 'email'
});
// User login
gtag('event', 'login', {
method: 'google'
});
// Content share
gtag('event', 'share', {
method: 'facebook',
content_type: 'article',
item_id: 'article_123'
});
Custom Events in GA4
Create custom events for business-specific tracking needs:
When to Use Custom Events:
- Business-specific user actions not covered by recommended events
- Unique funnel stages in your user journey
- Feature usage tracking for product analytics
- A/B test variant tracking
- Error and exception monitoring
Custom Event Implementation:
// SaaS trial start tracking
gtag('event', 'trial_started', {
plan_type: 'premium',
trial_length: '14_days',
source: 'pricing_page',
coupon_applied: 'TRIAL50'
});
// Feature usage tracking
gtag('event', 'feature_used', {
feature_name: 'advanced_export',
feature_category: 'reporting',
user_tier: 'professional'
});
// Content engagement tracking
gtag('event', 'article_completed', {
article_id: 'ga4-setup-guide',
article_category: 'analytics',
time_spent_seconds: 420,
scroll_depth: 100
});
GA4 Event Naming Best Practices:
| ✅ Good | ❌ Avoid |
|---|---|
trial_started | Trial Started (no spaces) |
pricing_page_view | pricingPageView (use snake_case) |
video_played | videoPlayed (be consistent) |
error_occurred | error (be descriptive) |
button_click | click (specify context) |
Related: Event Tracking Strategy Guide - Learn how to design a comprehensive event tracking plan for your business.
Not sure which events to track for your business? Every industry has different "money events." Book a free event mapping session — we'll identify your top 10 events based on your business model.
E-commerce Tracking
Complete E-commerce Event Funnel
Track the entire customer journey with these GA4 e-commerce events:
| Event | Funnel Stage | Required Parameters | Optional Parameters |
|---|---|---|---|
view_item_list | Browse/Search | items, item_list_name | item_list_id |
select_item | Product Selection | items, item_list_name | index |
view_item | Product Detail | items | - |
add_to_cart | Add to Cart | items, value, currency | - |
add_to_wishlist | Wishlist | items, value, currency | - |
remove_from_cart | Cart Removal | items, value, currency | - |
view_cart | Cart Review | items, value, currency | - |
begin_checkout | Checkout Start | items, value, currency | coupon |
add_shipping_info | Shipping Selected | items, value, shipping_tier | - |
add_payment_info | Payment Selected | items, value, payment_type | - |
purchase | Order Complete | transaction_id, items, value | tax, shipping, coupon |
refund | Order Refunded | transaction_id | items, value |
Item Parameter Specifications
Standard Item Structure for GA4:
{
item_id: 'SKU_12345', // Required: Unique product ID
item_name: 'Premium Widget Pro', // Required: Product name
item_category: 'Widgets', // Recommended: Primary category
item_category2: 'Professional', // Optional: Sub-category
item_category3: 'Power Tools', // Optional: Third level
item_category4: 'Equipment', // Optional: Fourth level
item_category5: 'Industrial', // Optional: Fifth level
item_brand: 'WidgetCo', // Recommended: Brand name
price: 99.99, // Required: Unit price
quantity: 2, // Required for purchase: Quantity
item_variant: 'Blue / Large', // Optional: Variant details
item_list_name: 'Search Results', // Optional: List context
item_list_id: 'search_results_001', // Optional: List identifier
index: 1, // Optional: Position in list
coupon: 'WIDGET10', // Optional: Item-level coupon
discount: 10.00, // Optional: Item-level discount
affiliation: 'Partner Store', // Optional: Product affiliation
location_id: 'CHI_001', // Optional: Store location
item_group_id: 'WGT_123' // Optional: Product group
}
Purchase Event Complete Example
gtag('event', 'purchase', {
// Transaction Details
transaction_id: 'T_12345', // Required: Unique order ID
affiliation: 'Online Store', // Optional: Store name
value: 299.97, // Required: Total value
tax: 24.00, // Optional: Tax amount
shipping: 15.00, // Optional: Shipping cost
currency: 'USD', // Required: Currency code
coupon: 'SPRING20', // Optional: Order coupon
// Items Array
items: [
{
item_id: 'SKU_12345',
item_name: 'Premium Widget',
item_category: 'Widgets',
item_brand: 'WidgetCo',
price: 99.99,
quantity: 2,
item_variant: 'Blue'
},
{
item_id: 'SKU_67890',
item_name: 'Widget Accessory Kit',
item_category: 'Accessories',
item_brand: 'WidgetCo',
price: 49.99,
quantity: 2,
coupon: 'ACCESSORY5'
}
]
});
📊 Need e-commerce tracking help? Get expert GA4 e-commerce implementation for your online store.
Industry-Specific GA4 Setup
Every industry has different "money events" and reporting needs. Here is how to configure GA4 for the four most common business models we work with.
For E-commerce (Shopify / WooCommerce)
E-commerce GA4 setup centers on the purchase funnel. The Enhanced E-commerce events described above (view_item, add_to_cart, begin_checkout, purchase) are your foundation, but platform-specific implementation differs significantly.
Shopify: Native GA4 integration is available under Online Store > Preferences, but it only tracks basic purchase events. For the complete funnel (view_item_list, add_to_cart, begin_checkout), you need either the Shopify Pixel API (for Checkout Extensibility stores) or a third-party app like Elevar or Analyzify. Key events to prioritize: purchase (with full item arrays and transaction values), add_to_cart (for cart abandonment audiences), and view_item (for retargeting product viewers).
WooCommerce: Use the Google Listings & Ads plugin or MonsterInsights for automatic e-commerce event tracking. WooCommerce's advantage is deeper GTM integration — you can push data layer events from WooCommerce hooks directly to GTM, giving you full control over event parameters. Make sure to include item_category in all events so you can analyze performance by product category in GA4's monetization reports.
Key Metric to Watch: E-commerce purchase rate (total purchasers / total users). Healthy benchmarks vary by industry — check our industry benchmarks for your vertical.
For SaaS / Subscription
SaaS businesses need to track the entire user lifecycle from first visit through trial, activation, subscription, and expansion.
Core Events:
sign_up— Free account creation (includemethodparameter: google, email, github)trial_started— Trial activation (includeplan_typeandtrial_length)feature_used— Key feature engagement (includefeature_nameparameter)subscription_purchased— Paid conversion (includevalue,currency,plan_type)subscription_renewed/subscription_cancelled— Retention tracking
User Properties: Set user-scoped custom dimensions for plan_type, account_age_days, company_size, and user_role. These let you segment reports by customer tier and identify which segments convert and retain best.
Measurement Protocol: For server-side events like subscription renewals and cancellations (which happen through your billing system, not the website), use the GA4 Measurement Protocol↗ to send events from your backend directly to GA4.
For Lead Generation
Lead generation businesses convert website visitors into qualified leads through forms, phone calls, and chat interactions.
Core Events:
generate_lead— Primary form submission (setvalueto your average lead value based on close rate)phone_call— Click-to-call interactions (usetel:link click trigger in GTM)chat_started— Live chat or chatbot engagementcontent_download— Gated content downloads (whitepapers, ebooks)demo_requested— High-intent demo or consultation requests (assign higher value)
Lead Value Setup: Assign monetary values based on your average close rate. If your average deal size is $10,000 and your lead-to-customer rate is 5%, each lead is worth $500. Pass this value with the generate_lead event so GA4 can calculate ROAS correctly. Use our ROAS calculator to determine your optimal lead values.
Offline Conversion Import: Many leads convert offline (via sales calls or in-person meetings). Use GA4's Measurement Protocol or the Google Ads↗ offline conversion import to feed these conversions back into your analytics. This closes the loop between marketing spend and actual revenue.
For iGaming
iGaming has unique tracking requirements due to regulatory constraints and the multi-step player journey from registration through deposit and gameplay.
Core Events:
sign_up— Player registration (required parameters:method,country)first_deposit— First-time deposit event (includevalue,currency,payment_method)deposit— Subsequent deposits (same parameters as first_deposit)game_played— Game session start (includegame_type,game_name)withdrawal— Player withdrawal request
Compliance Notes: Many jurisdictions restrict tracking and retargeting for gambling products. Ensure your Consent Mode implementation covers gambling-specific regulations in your target markets. Some territories require explicit opt-in before any analytics tracking, which is stricter than standard GDPR requirements.
User-ID Implementation: iGaming sites should implement User-ID tracking from day one. Players log in frequently across devices, and without User-ID, GA4 creates duplicate user profiles that inflate your active player counts and distort LTV calculations. Use Google Signals↗ as a fallback for users who are not logged in.
For more iGaming-specific strategies, explore our iGaming retargeting guide and industry benchmark data.
Conversion Configuration
Setting Up GA4 Conversions
Conversions in GA4 are events marked as important business goals:
How to Mark Events as Conversions:
- Navigate to Admin → Events
- Locate the event you want to convert
- Toggle the "Mark as conversion" switch
- The event appears in Conversions reports within 24 hours
Common GA4 Conversion Events:
| Business Type | Recommended Conversions |
|---|---|
| E-commerce | purchase, add_to_cart, begin_checkout |
| Lead Generation | generate_lead, submit_form, phone_call |
| SaaS | trial_started, subscription_purchased, upgrade |
| Content/Media | subscription_signup, content_engagement |
| Marketplace | listing_created, seller_signup, transaction_complete |
Conversion Value Configuration
Assign monetary values to non-purchase conversions for ROAS analysis:
// Lead generation with estimated value
gtag('event', 'generate_lead', {
currency: 'USD',
value: 150.00 // Average lead value based on close rate
});
// Trial start with projected LTV
gtag('event', 'trial_started', {
currency: 'USD',
value: 500.00 // Projected lifetime value
});
Attribution Settings in GA4
Configure how conversion credit is assigned:
Attribution Models:
- Data-driven: Algorithmic attribution (recommended)
- Paid and organic last click: Last non-direct touch
- Cross-channel last click: Last touch across all channels
Conversion Windows:
| Conversion Type | Default Window | Recommended |
|---|---|---|
| Acquisition events | 30 days | 30 days |
| All other events | 90 days | 90 days |
| Engaged sessions | 1 day | 1 day |
Configure Attribution: Admin → Attribution Settings → Reporting Attribution Model
Tracking conversions but they don't match your CRM? That's the #1 analytics problem we fix. Get a free conversion audit — we'll cross-reference your GA4 data with actual sales.
Audience and Reporting
GA4 Audience Creation
Built-in Audiences:
- All users
- Purchasers
- 7-day active users
- 30-day active users
Custom Audience Types:
| Audience Type | Use Case | Example |
|---|---|---|
| Event-based | Users who performed specific actions | Added to cart but didn't purchase |
| Dimension-based | Users with specific attributes | Mobile users from United States |
| Sequence-based | Users who performed actions in order | Viewed pricing, then signed up |
| Predictive | ML-powered future behavior | Likely 7-day purchasers |
High-Intent Audience Example:
Audience Name: Cart Abandoners
Conditions:
- Event: add_to_cart (in last 14 days)
- AND: Event: purchase (in last 14 days) = 0
Membership Duration: 30 days
GA4 Reporting Setup
Standard Reports Overview:
| Report Category | Key Reports | Purpose |
|---|---|---|
| Acquisition | Traffic acquisition, User acquisition | Understand how users find you (pair with UTM parameters for accurate attribution) |
| Engagement | Events, Conversions, Pages and screens | Measure user interaction |
| Monetization | E-commerce purchases, In-app purchases | Track revenue metrics |
| Retention | Retention, Cohorts | Analyze user return behavior |
| Demographics | Demographic details, Tech details | User characteristics |
Exploration Reports:
| Exploration Type | Best For | Key Features |
|---|---|---|
| Free Form | Custom analysis | Drag-and-drop dimensions/metrics |
| Funnel Exploration | Conversion analysis | Visualize drop-off points |
| Path Exploration | User journey mapping | See navigation sequences |
| Cohort Exploration | Retention analysis | Group by acquisition date |
| User Exploration | Individual user analysis | Drill into specific users |
| Segment Overlap | Audience comparison | Venn diagram visualization |
Key GA4 Metrics to Monitor
Acquisition Metrics:
- Users (total unique users)
- New users (first-time visitors)
- Sessions (engaged sessions)
- Sessions per user (engagement frequency)
Engagement Metrics:
- Average engagement time (time on site)
- Engaged sessions (10+ seconds or conversion)
- Engagement rate (percentage of engaged sessions)
- Events per session (interaction depth)
Monetization Metrics:
- Total revenue (all revenue sources)
- Purchases (transaction count)
- Average purchase revenue (AOV)
- E-commerce purchase rate (conversion rate)
Retention Metrics:
- Returning users (previous visitors)
- User retention by cohort (return rates)
- Lifetime value (total user value)
Integrations and Advanced Features
Google Ads Integration
Linking GA4 to Google Ads is one of the highest-value integrations you can set up. For detailed instructions, see Google's official GA4 and Google Ads linking guide↗.
Linking GA4 to Google Ads:
- GA4: Admin > Product Links > Google Ads Links
- Click "Link" and select your Google Ads account
- Enable auto-tagging for accurate attribution
- Import GA4 conversions to Google Ads
- Import GA4 audiences for remarketing
Benefits of Integration:
- GA4 audiences available in Google Ads for media buying optimization
- Conversion import for bidding optimization
- Cross-platform reporting
- Enhanced attribution modeling
BigQuery Export Setup
BigQuery Export↗ unlocks raw event-level data for advanced analysis beyond what GA4's interface can provide.
Configure BigQuery Link:
- Admin > BigQuery Links
- Click "Link" and select your GCP project
- Configure data streams to export
- Choose export frequency (daily or streaming)
- Set data location
BigQuery Use Cases:
- Raw event-level data analysis
- Custom attribution modeling
- Data warehousing and backup
- Machine learning model training
- Advanced SQL-based reporting
Measurement Protocol (Server-Side)
Send events server-to-server for enhanced reliability:
curl -X POST \
'https://www.google-analytics.com/mp/collect?measurement_id=G-XXXXXXXXXX&api_secret=YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"client_id": "1234567890.1234567890",
"user_id": "user_12345",
"timestamp_micros": "1234567890000000",
"events": [{
"name": "purchase",
"params": {
"transaction_id": "T_12345",
"value": 99.99,
"currency": "USD",
"items": [{
"item_id": "SKU_12345",
"item_name": "Product Name",
"price": 99.99,
"quantity": 1
}]
}
}]
}'
Custom Dimensions and Metrics
Scope Types:
| Scope | Description | Example |
|---|---|---|
| User-scoped | Persistent across sessions | Membership tier, Customer ID |
| Event-scoped | Specific to individual events | Error code, Feature flag |
| Item-scoped | Specific to e-commerce items | Product margin, Supplier |
Create Custom Definitions:
- Admin → Custom Definitions
- Click "Create custom dimension" or "Create custom metric"
- Define scope, name, and description
- Register the event parameter
Cross-Domain Tracking
Configuration for Multiple Domains:
gtag('config', 'G-XXXXXXXXXX', {
'linker': {
'domains': [
'example.com',
'shop.example.com',
'checkout.example.com',
'blog.example.com'
]
}
});
Requirements:
- Same GA4 property across domains
- Consistent linker configuration
- Proper cookie settings
Testing and Validation
DebugView for Real-Time Testing
DebugView↗ shows events in real-time as you test:
Access DebugView: Configure > DebugView
Enable Debug Mode:
// Method 1: URL parameter
https://example.com/?_dbg=1
// Method 2: GTM preview mode
Enable preview and debug
// Method 3: gtag configuration
gtag('config', 'G-XXXXXXXXXX', { 'debug_mode': true });
// Method 4: Chrome extension
Use Google Analytics Debugger extension
DebugView Features:
- Real-time event stream
- Parameter inspection
- User property changes
- Debug device selector
GA4 Testing Checklist
Pre-Launch Testing:
- Page views firing on all page types
- Enhanced measurement events working
- Custom events triggering correctly
- E-commerce events with proper parameters
- Conversion events marked correctly
- User ID passing when available
- Cross-domain tracking functioning
- Internal traffic excluded
Post-Launch Validation:
- Real-time reports showing data
- Standard reports populating
- Conversion counts match backend
- Revenue figures accurate
- Audience building correctly
Common GA4 Issues and Solutions
| Issue | Cause | Solution |
|---|---|---|
| No data in reports | Tag not firing | Check installation, verify Measurement ID |
| Missing events | Incorrect trigger | Test in DebugView, verify event code |
| Incorrect values | Data layer issues | Validate data layer, check variable mapping |
| Duplicate events | Multiple triggers | Audit GTM triggers, remove duplicates |
| Cross-domain issues | Linker not configured | Add domains to linker configuration |
| User ID not working | Wrong scope | Ensure user_id is set before config |
🔗 Related: GA4 Troubleshooting Guide - Detailed solutions for common GA4 implementation issues.
GA4 Best Practices
Implementation Best Practices
- Use Google Tag Manager: Centralize tracking management
- Document Your Events: Maintain an event tracking plan
- Test Before Deploying: Always use DebugView and preview mode
- Start with Recommended Events: Use Google's standard events when possible
- Plan for Scale: Design naming conventions that scale
- Regular Audits: Review and clean up unused events
- Privacy First: Implement consent mode and respect user choices
Data Quality Best Practices
| Practice | Implementation |
|---|---|
| Consistent Naming | Use snake_case, lowercase only |
| Parameter Standards | Document all parameters and values |
| Data Validation | Validate events in DebugView before launch |
| Regular Monitoring | Check reports weekly for anomalies |
| Version Control | Track changes to tracking implementation |
| Team Training | Ensure all stakeholders understand GA4 |
Migration Best Practices
If migrating from Universal Analytics:
- Run both properties simultaneously during transition
- Map UA events to GA4 equivalents
- Compare key metrics between platforms
- Update dashboards and reporting
- Train team on new interface
- Archive UA data before property deletion
📊 Ready to master GA4? Enroll in our comprehensive GA4 training program for your team.
FAQ
What is GA4 and why should I migrate from Universal Analytics?
GA4 (Google Analytics 4) is the latest version of Google Analytics that uses an event-based data model instead of session-based tracking. You should migrate because Universal Analytics was sunset in July 2023, and GA4 offers superior cross-platform tracking, machine learning capabilities, privacy-focused measurement, and better integration with Google's advertising products.
How do I set up GA4 for my website?
To set up GA4, create a new GA4 property in Google Analytics, configure your data stream (web, iOS, or Android), install the GA4 tracking code via gtag.js or Google Tag Manager, verify data collection in Real-time reports, and configure enhanced measurement settings for automatic event tracking.
What are the key differences between GA4 and Universal Analytics?
Key differences include: GA4 uses event-based tracking vs session-based in UA, GA4 has built-in cross-platform tracking, GA4 offers machine learning insights, UA had longer data retention by default, and GA4 provides more flexible reporting through Explorations instead of pre-defined reports.
How do I track events in GA4?
GA4 automatically tracks many events like page views, scrolls, and clicks through Enhanced Measurement. For custom events, use the gtag('event') command with event name and parameters, or configure events through Google Tag Manager. Recommended events include purchase, add_to_cart, sign_up, and generate_lead.
What is the GA4 Measurement ID and where do I find it?
The GA4 Measurement ID (format: G-XXXXXXXXXX) is your property's unique identifier. Find it in Admin → Data Streams → Select your stream → Measurement ID. This ID is required for installing GA4 on your website or app.
How do I set up e-commerce tracking in GA4?
Set up GA4 e-commerce by implementing the purchase event with transaction details, configure product view events (view_item, view_item_list), track cart actions (add_to_cart, remove_from_cart), monitor checkout funnel (begin_checkout, add_shipping_info, add_payment_info), and ensure all events include proper item parameters and currency values.
What are GA4 conversions and how do I configure them?
GA4 conversions are events you mark as important business actions. Configure them by going to Admin → Events, toggling 'Mark as conversion' for key events like purchase, generate_lead, or sign_up. Set conversion values for ROAS calculation and optimize attribution settings for accurate reporting.
How long does GA4 take to show data?
GA4 Real-time reports show data within minutes. Standard reports typically populate within 24-48 hours. Some features like predictive audiences require 28 days of data to activate. DebugView shows events instantly for testing purposes.
Can I use GA4 and Universal Analytics together?
Yes, you can run GA4 and Universal Analytics simultaneously using dual tracking. Install both tracking codes on your website to compare data during the transition period. This is recommended during migration to ensure data continuity.
What are the best practices for GA4 implementation?
Best practices include: implementing via Google Tag Manager for flexibility, setting up enhanced measurement for automatic events, creating a measurement plan with custom events, configuring data retention to 14 months, setting up internal traffic filters, enabling Google Signals for cross-device tracking, and regularly testing with DebugView.
Conclusion
Mastering GA4 setup is essential for modern digital analytics. This comprehensive Google Analytics 4 tutorial has covered everything from initial property creation to advanced tracking implementation, providing you with the knowledge needed for successful GA4 implementation.
Key Takeaways for GA4 Success:
- Event-Based Foundation: GA4's event-based model provides flexibility that session-based tracking cannot match
- Cross-Platform Unification: Track web and app users in a single property for complete journey visibility
- Privacy-First Design: GA4 is built for the cookieless future with privacy-centric measurement
- Machine Learning Integration: Leverage predictive metrics for proactive decision-making
- Ecosystem Connectivity: Seamless integration with Google Ads, BigQuery, and other Google products
Your Next Steps:
- Set up your GA4 property using our step-by-step guide
- Configure enhanced measurement for automatic event tracking
- Implement e-commerce events if you run an online store
- Set up conversions to track your key business goals
- Create audiences for marketing and analysis
- Build visual dashboards with Looker Studio↗ connected to your GA4 data
📊 Need expert help with GA4? RedClaw Performance provides professional GA4 setup, custom event tracking configuration, e-commerce implementation, and team training services. Contact us today for a free consultation.
Last Updated: March 16, 2026 | Author: RedClaw Performance Team
Related Resources:
- Google Tag Manager Setup Guide
- Event Tracking Strategy
- E-commerce Analytics Implementation
- GA4 Troubleshooting Guide
- Analytics Training Programs
Related Posts
Ad Data Analysis for Beginners 2026 | Essential Guide to Data Interpretation
Learn ad data analysis from scratch. Master core metrics like CTR, CPC, ROAS, and conversion tracking. Understand what the data means and make smarter advertising decisions with our comprehensive beginner's guide.
Reporting Automation Guide 2026 | Essential Efficiency Tips for Digital Marketers
Learn reporting automation to save 80% of data processing time. This guide covers Meta Ads, Google Analytics automation tools, and practical tutorials to build efficient data dashboards.
UTM Parameters Explained: The Only Guide You Need (+ Free Builder)
Confused by UTM parameters? This guide breaks down utm_source, utm_medium, utm_campaign with real examples. Includes naming conventions, GA4 integration, and a free UTM builder template.