Google Analytics 4 (GA4) adalah versi terbaru Google Analytics dengan event-based tracking yang lebih powerful untuk mengukur performa website dan SEO.
Perbedaan GA4 vs Universal Analytics
| Feature | Universal Analytics | GA4 |
|---|---|---|
| Model | Session-based | Event-based |
| Data Retention | Up to 50 months | Max 14 months |
| Cross-platform | Limited | Built-in |
| Machine Learning | Basic | Advanced |
| Privacy | Less compliant | More compliant |
Langkah Setup GA4
Step 1: Buat Property GA4
- Buka Google Analytics
- Admin > Create Property
- Pilih Web
- Masukkan nama dan URL website
- Pilih timezone dan currency
Step 2: Dapatkan Measurement ID
Format: G-XXXXXXXXXX
Lokasi:
Admin > Data Streams > Web > Measurement ID
Step 3: Install Tracking Code
Option A: Direct Installation
<!-- 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>
Option B: Google Tag Manager
- Create GTM container
- Add GA4 Configuration tag
- Set trigger: All Pages
- Publish
Step 4: Verify Installation
- Real-time report di GA4
- Buka website di incognito
- Check if data appears
Tools:
– GA4 Debugger extension
– Tag Assistant
Konfigurasi Penting
Enhanced Measurement
Auto-track events:
– Page views
– Scrolls
– Outbound clicks
– Site search
– Video engagement
– File downloads
Enable di: Data Streams > Enhanced Measurement
Custom Events
// Track button click
gtag('event', 'button_click', {
'button_name': 'signup',
'button_location': 'header'
});
// Track form submission
gtag('event', 'form_submit', {
'form_name': 'contact',
'form_destination': 'sales'
});
Conversions
Setup conversions:
1. Admin > Conversions
2. New conversion event
3. Enter event name
4. Mark as conversion
Important conversions:
– Form submissions
– Purchases
– Sign-ups
– Contact clicks
GA4 Reports untuk SEO
Traffic Acquisition
Lihat organic traffic:
1. Reports > Acquisition > Traffic acquisition
2. Filter: Session source/medium contains “organic”
Landing Pages
Top performing pages:
1. Reports > Engagement > Pages and screens
2. Sort by sessions/engagement
Search Console Integration
- Admin > Product Links
- Search Console Linking
- Connect property
Benefits:
– Query data in GA4
– Combined reporting
– Better insights
GA4 Explorations untuk SEO
Funnel Exploration
Visualize user journey:
Landing Page β Product View β Add to Cart β Purchase
Path Exploration
See how users navigate:
– Entry points
– Exit points
– Common paths
Cohort Analysis
Track user behavior over time:
– New vs returning users
– Engagement trends
– Conversion patterns
Best Practices
Setup Checklist:
β Create GA4 property
β Install tracking code
β Verify data collection
β Enable enhanced measurement
β Setup conversions
β Connect Search Console
β Configure data retention (14 months)
β Setup custom events
β Create custom reports
Privacy Compliance
Consent Mode
gtag('consent', 'default', {
'analytics_storage': 'denied',
'ad_storage': 'denied'
});
// After user consent
gtag('consent', 'update', {
'analytics_storage': 'granted'
});
Data Retention
Set maximum retention:
Admin > Data Settings > Data Retention
Kesimpulan
GA4 adalah tool esensial untuk mengukur performa SEO. Setup yang benar dan integrasi dengan Search Console memberikan insights lengkap tentang organic traffic dan user behavior.