Universal Analytics died on July 1, 2024.1 Google deleted all historical UA data. If you haven’t set up GA4, you have no website analytics.
GA4 works differently than Universal Analytics. The data model changed. The interface changed. The metrics changed. Comparing the two platforms directly leads to confusion.
This guide covers GA4 from the ground up. By the end, you’ll have a working analytics setup that tracks what matters to your business.
GA4 vs Universal Analytics: Key Differences
Before diving into setup, understand why GA4 feels different.
| Aspect | Universal Analytics | GA4 |
|---|---|---|
| Data Model | Session-based | Event-based |
| Cross-Platform | Limited | Built-in (web + app) |
| Privacy | Cookie-dependent | Privacy-first design |
| Machine Learning | Basic | Advanced predictions |
| Reports | Pre-built templates | Customizable |
| Data Retention | 14-50 months | 2-14 months |
Why Google Made the Switch
Two primary drivers:
Privacy regulations: GDPR, CCPA, and similar laws made cookie-based tracking legally problematic. GA4 uses first-party data and can operate with limited cookie access.
Cross-platform measurement: Users move between devices. Universal Analytics tracked sessions on individual devices. GA4 tracks users across web and mobile apps in a single property.
What This Means for You
- Your traffic numbers will look different (not wrong, different)
- Sessions and users are calculated differently
- You’ll need to set up conversion tracking manually
- Custom reports require more initial work but offer more flexibility
Setting Up Your GA4 Property
Step 1: Create a Google Analytics Account
- Go to analytics.google.com
- Sign in with your Google account
- If prompted, click “Start measuring”
If you have an existing Google Analytics account, click Admin (gear icon) in the bottom left.
Step 2: Create a GA4 Property
- In Admin, click “Create” → “Property”
- Enter your property name (typically your website or business name)
- Select your reporting time zone and currency
- Click “Next”
- Select your industry category and business size
- Select your business objectives (these customize your default reports)
- Click “Create”
Step 3: Create a Data Stream
After creating the property, you’ll set up a data stream. This tells GA4 where to collect data from.
- Select your platform: Web, iOS App, or Android App
- For web, enter your website URL (including https://)
- Enter a stream name (e.g., “Main Website”)
- Click “Create stream”
You’ll receive a Measurement ID in the format G-XXXXXXXXXX. Save this—you’ll need it for installation.
Step 4: Install the Tracking Code
Choose one of three methods:
Method 1: Direct Installation (Simple Sites)
Copy the gtag.js snippet from the data stream setup page and paste it in the <head> section of every page on your site.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
Replace G-XXXXXXXXXX with your actual Measurement ID.
Best for: Static sites, custom-built websites, situations where you control the HTML directly.
Method 2: Google Tag Manager (Recommended)
Google Tag Manager (GTM) provides more flexibility and doesn’t require code changes for future tracking modifications.
Setup GTM:
- Go to tagmanager.google.com
- Create an account and container for your website
- Copy the two GTM snippets (one for
<head>, one for<body>) - Install on your website
Add GA4 Tag:
- In GTM, click “New Tag”
- Choose “Google Analytics: GA4 Configuration”
- Enter your Measurement ID
- Set trigger to “All Pages”
- Save and publish the container
Best for: Most websites. Enables future tracking changes without touching code.
Method 3: CMS Plugins
Most platforms have built-in GA4 support:
WordPress:
- Site Kit by Google (official Google plugin)
- MonsterInsights (popular third-party)
- Or add the code to your theme’s header
Shopify:
- Settings → Online Store → Preferences
- Paste your Measurement ID in Google Analytics field
Wix:
- Marketing Integrations → Google Analytics
- Connect your GA4 property
Squarespace:
- Settings → Advanced → External API Keys
- Paste your Measurement ID
Understanding GA4’s Data Model
GA4 measures everything as events. This is the fundamental shift from Universal Analytics.
Everything is an Event
| In Universal Analytics | In GA4 |
|---|---|
| Pageview | page_view event |
| Event | Event |
| Transaction | purchase event |
| Social interaction | Event |
| User timing | Event |
There’s no separate “pageview” hit type. A pageview is just an event named page_view.
Automatically Collected Events
GA4 collects these without any configuration:2
first_visit- New user’s first arrivalsession_start- Beginning of a sessionuser_engagement- User actively engaged with pagepage_view- Every page load
Enhanced Measurement Events
Enable these in your data stream settings (Admin → Data Streams → [Your Stream] → Enhanced measurement):
| Event | What It Tracks |
|---|---|
scroll | User scrolls 90% of page |
click | Outbound link clicks |
view_search_results | Site search usage |
video_start | Video begins playing |
video_progress | Video reaches 10%, 25%, 50%, 75% |
video_complete | Video finishes |
file_download | PDF, doc, spreadsheet downloads |
form_start | User begins filling form |
form_submit | Form submission |
These are free tracking—turn them on.
Custom Events
For tracking specific to your business (button clicks, signups, specific page interactions), you’ll create custom events. Covered in detail below.
Navigating the GA4 Interface
Home Dashboard
The home screen shows:
- User snapshot: Users and new users over time
- Real-time: Live visitors on your site
- Recently viewed: Reports you’ve accessed
- Insights: AI-generated observations about your data
Reports Section
Click “Reports” in the left navigation for standard analytics.
Acquisition Reports
Where your users come from.
- Overview: Traffic summary by channel
- User acquisition: First-time visitors by source
- Traffic acquisition: All sessions by source
Key dimensions: Source, medium, campaign, channel grouping.
Engagement Reports
What users do on your site.
- Overview: Engagement summary
- Events: All tracked events
- Conversions: Events marked as key events
- Pages and screens: Performance by page
- Landing page: Entry page performance
Monetization Reports
E-commerce and revenue tracking.
- Overview: Revenue summary
- E-commerce purchases: Product and transaction data
- Publisher ads: Ad revenue (if applicable)
Retention Reports
User return behavior.
- Overview: Return rates
- Cohort retention: How cohorts return over time
- User lifetime value: LTV calculations
Explore Section
Custom analysis beyond standard reports. Access via “Explore” in the left navigation.
Exploration types:
- Free-form: Custom tables and visualizations
- Funnel exploration: Step-by-step conversion analysis
- Path exploration: User journey visualization
- Segment overlap: Compare audience segments
- Cohort exploration: Behavior by user groups
Explorations require more setup but provide deeper insights than standard reports.
Setting Up Conversions (Key Events)
In GA4, conversions are called “key events.” Any event can be marked as a key event.
What Should Be a Conversion?
Track actions that matter to your business:
- Form submissions
- Newsletter signups
- Purchase completions
- Demo requests
- Phone calls
- File downloads
- Account creations
How to Mark an Event as a Key Event
For existing events:
- Go to Admin → Events
- Find the event in the list
- Toggle “Mark as key event” to on
For new events:
- Create the event first (see next section)
- Then mark it as a key event
Conversion Value
Assign monetary values to conversions for ROI tracking:
- Go to Admin → Key events
- Click the event name
- Toggle “Event value” on
- Set a default value or use event parameters
Creating Custom Events
Method 1: GA4 Interface
Create events based on existing events with modified parameters.
- Admin → Events → Create event
- Click “Create”
- Name your event (e.g.,
newsletter_signup) - Set conditions:
- Parameter:
event_name - Operator: equals
- Value:
form_submit - AND
- Parameter:
page_location - Operator: contains
- Value:
newsletter
- Parameter:
- Save
This creates a new event whenever a form is submitted on a page containing “newsletter” in the URL.
Method 2: Google Tag Manager (More Flexible)
GTM provides more control over when and how events fire.
Example: Track CTA Button Clicks
- In GTM, create a new Tag
- Tag type: Google Analytics: GA4 Event
- Configuration tag: Select your GA4 config tag
- Event name:
cta_click - Event parameters:
button_text:{{Click Text}}page_path:{{Page Path}}
- Create trigger: Click - All Elements
- Trigger fires on: Some Clicks
- Click Classes contains
cta-button(or your button’s identifier)
- Save and publish
Essential Reports for Beginners
Focus on these four reports initially:
1. Traffic Acquisition Report
Path: Reports → Acquisition → Traffic acquisition
What it shows: Where your traffic comes from.
Key metrics:
- Users and sessions by source
- Engagement rate (replaces bounce rate)
- Average engagement time
- Conversions by source
Use it to: Identify your best traffic sources and allocate marketing resources.
2. Pages and Screens Report
Path: Reports → Engagement → Pages and screens
What it shows: Performance of individual pages.
Key metrics:
- Views per page
- Users per page
- Average engagement time
- Conversions by page
Use it to: Find top content, identify underperforming pages, spot opportunities.
3. Conversions Report
Path: Reports → Engagement → Conversions
What it shows: How your key events perform.
Key metrics:
- Conversion count
- Conversion rate
- Revenue (if configured)
- Conversion by source
Use it to: Measure business outcomes, not just traffic.
4. Real-Time Report
Path: Reports → Real-time
What it shows: Live visitor activity.
Use it to:
- Verify tracking installation
- Test new events
- Monitor campaign launches
- Debug issues
GA4 and Privacy Compliance
Built-in Privacy Features
GA4 includes several privacy-focused defaults:3
- IP anonymization: Enabled by default (no configuration needed)
- Data retention controls: Set how long user data is stored
- User deletion: Remove individual user data on request
- Geographic controls: Restrict data collection by region
Data Retention Settings
Critical: GA4 defaults to 2 months of user-level data retention. Extend this.
- Admin → Data Settings → Data Retention
- Change “Event data retention” to 14 months
- Toggle “Reset user data on new activity” to on
- Save
Consent Mode
For GDPR/CCPA compliance, implement Consent Mode:
- Install a consent management platform (CMP) like Cookiebot, OneTrust, or similar
- Configure Google Consent Mode in GTM
- GA4 adjusts behavior based on user consent:
- With consent: Full tracking
- Without consent: Cookieless pings for conversion modeling
This maintains some measurement capability while respecting user privacy choices.
Common GA4 Mistakes to Avoid
1. Not Enabling Enhanced Measurement
Free tracking data with a toggle. Go to your data stream settings and enable all applicable enhanced measurement options.
2. Keeping Default Data Retention
The 2-month default loses valuable historical data. Extend to 14 months immediately.
3. Creating Too Many Custom Events
More events isn’t better. Focus on events that drive business decisions. A dozen well-defined events beats a hundred unused ones.
4. Not Setting Up Key Events
Traffic data without conversion tracking is just numbers. Define what success means and track it.
5. Comparing GA4 Numbers to Universal Analytics
The platforms calculate metrics differently. Sessions, users, and engagement metrics won’t match. This is expected.
6. Skipping Google Tag Manager
Installing gtag.js directly works, but GTM makes future changes easier. The initial setup investment pays off.
Debugging and Validation
DebugView
Path: Admin → DebugView
View events as they fire in real time.
Enable debug mode:
- Install the Google Analytics Debugger Chrome extension
- Or add
#gtm.debugto your URL
Google Tag Assistant
Chrome extension that validates tag installation:
- Install Tag Assistant Legacy extension
- Navigate to your website
- Click the extension icon
- View tag status and any errors
Real-Time Reports
After installing tracking:
- Open your website in a new browser tab
- Open GA4 Reports → Real-time
- Confirm you appear as an active user
- Click around your site
- Verify events appear in the real-time stream
Next Steps After Setup
With basic GA4 running, expand your implementation:
Week 1-2:
- Mark key business actions as conversions
- Set up at least 3-5 key events
- Extend data retention to 14 months
Week 3-4:
- Create custom events for specific tracking needs
- Build an exploration report for your main KPIs
- Connect Google Ads (if using paid advertising)
Month 2+:
- Set up custom audiences for remarketing
- Create automated reports or alerts
- Explore BigQuery integration for advanced analysis (for large sites)
Conclusion
GA4 requires relearning analytics fundamentals. The event-based model, new interface, and different metrics create an initial learning curve.
The investment is worthwhile. GA4 provides cross-platform tracking, privacy-compliant measurement, and machine learning capabilities that Universal Analytics couldn’t match.
Start with the basics: install tracking, enable enhanced measurement, extend data retention, and define your conversions. The rest builds from there.
Further Reading
- Related: Analytics Tools Comparison
- Related: Complete SEO Guide
- Related: On-Page SEO Guide
- Google Analytics Help Center
- Google Tag Manager Documentation
References
Footnotes
-
Google. “Universal Analytics is going away.” https://support.google.com/analytics/answer/11583528 - UA stopped processing data July 1, 2024. ↩
-
Google. “[GA4] Automatically collected events.” https://support.google.com/analytics/answer/9234069 ↩
-
Google. “[GA4] Data collection and privacy.” https://support.google.com/analytics/answer/9019185 ↩