- Docs
- Integrations
Google Analytics 4 Integration
Connect GA4 to track website traffic and correlate with AI visibility
Overview
The Google Analytics 4 integration brings your website traffic data into MeasureLLM, enabling you to correlate AI visibility with actual user behavior. Track sessions, users, engagement metrics, and most importantly—identify traffic coming from AI platforms.
Track active users, new vs returning, and user demographics
Sessions, bounce rate, pages per session, session duration
Identify visitors from ChatGPT, Claude, Perplexity, and more
Breakdown by organic, direct, referral, social, and AI sources
Monitor goals, events, and e-commerce conversions
Track engagement rate, scroll depth, and user interactions
Connecting Google Analytics 4
Prerequisites
- A Google Analytics 4 property (not Universal Analytics)
- Editor or Admin access to the GA4 property
- Admin or Owner role in your MeasureLLM organization
Step-by-Step Setup
- Navigate to Settings → Integrations → Google Analytics 4
- Click "Connect with Google"
- Select your Google account and authorize MeasureLLM
- Grant read-only access to Analytics data
- Return to MeasureLLM and view your GA4 properties
- Enable the properties you want to sync
- Click "Sync Now" to start collecting data
📸 Screenshot: GA4 Connection Flow
Shows the OAuth consent and property selection
Security & Privacy
- Read-only access - we never modify your GA4 data
- OAuth 2.0 authentication with encrypted token storage
- Automatic token refresh - no need to reconnect
- Disconnect anytime to revoke access
Property Management
Account Structure
Google Analytics 4 uses a hierarchical structure:
| Level | Description | Example |
|---|---|---|
| Account | Top-level organization container | My Company |
| Property | Website or app to track | example.com - GA4 |
| Data Stream | Source of data (web, iOS, Android) | www.example.com (Web) |
Permission Levels
- Administrator: Full access to all features
- Editor: Full data access, can configure settings
- Analyst: Can view all data and create reports
- Viewer: Can only view reports and data
Enabling Properties
After connecting, you'll see all GA4 properties you have access to. You can:
- Enable/Disable: Toggle which properties sync data
- Hide/Unhide: Remove properties from the UI without disconnecting
- Refresh Properties: Fetch newly added properties from GA4
AI Traffic Detection
One of the most powerful features of the GA4 integration is AI traffic detection. MeasureLLM automatically identifies visitors who arrive at your site after clicking links in AI-generated responses.
Detected AI Platforms
| Platform | Referrer Pattern | Detection |
|---|---|---|
| ChatGPT | chat.openai.com, chatgpt.com | Auto |
| Claude | claude.ai | Auto |
| Perplexity | perplexity.ai | Auto |
| Google AI/Gemini | gemini.google.com, bard.google.com | Auto |
| You.com | you.com | Auto |
AI Traffic Dashboard
The AI Traffic Dashboard shows:
- Total sessions from AI platforms vs. other sources
- Breakdown by individual AI platform
- Trending: How AI traffic is growing over time
- Top pages receiving AI-referred traffic
- Engagement comparison: AI visitors vs. all visitors
Pro Tip: Compare your AI visibility scores with actual AI-referred traffic to validate the correlation between your visibility and real traffic.
Data & Metrics
Core Metrics
| Metric | Description |
|---|---|
| Active Users | Users who have engaged with your site in the selected period |
| Sessions | Total number of sessions on your site |
| Engagement Rate | Percentage of engaged sessions (>10s, conversion, or 2+ pageviews) |
| Avg. Engagement Time | Average time users actively engage with your site |
| Bounce Rate | Percentage of sessions with no engagement |
| Events | Total triggered events (clicks, scrolls, purchases, etc.) |
Traffic Source Breakdown
- Organic Search: Traffic from search engines (Google, Bing, etc.)
- Direct: Users who typed your URL directly
- Referral: Traffic from other websites
- Social: Traffic from social media platforms
- AI Platforms: Traffic from AI assistants (ChatGPT, Claude, etc.)
- Paid Search: Traffic from paid advertising
- Email: Traffic from email campaigns
Geographic Data
View traffic breakdown by:
- Country
- Region/State
- City
- Language preferences
Device Data
Analyze how users access your site:
- Device category (desktop, mobile, tablet)
- Browser (Chrome, Safari, Firefox, etc.)
- Operating system
- Screen resolution
Engagement Analytics
Page Performance
Track how individual pages perform:
- Views: Total page views
- Unique Views: Unique users who viewed the page
- Avg. Time on Page: How long users spend on each page
- Exit Rate: Percentage of users who left from this page
- Scroll Depth: How far users scroll on the page
User Flow
Understand the journey users take through your site:
- Landing pages (where users enter)
- Exit pages (where users leave)
- Common navigation paths
- Drop-off points in conversion funnels
Conversion Tracking
Events & Conversions
GA4 uses an event-based model. MeasureLLM imports your configured events and conversions:
- Page views
- Button clicks
- Form submissions
- File downloads
- Video plays
- Purchases (e-commerce)
- Custom events you've configured
AI Traffic Conversions
MeasureLLM can show conversion rates specifically for AI-referred traffic, helping you understand the quality and intent of visitors from AI platforms.
E-commerce Metrics
If you have e-commerce tracking enabled in GA4:
- Revenue by traffic source (including AI platforms)
- Average order value
- Conversion rate
- Product performance
- Cart abandonment
Data Syncing
Automatic Sync
MeasureLLM automatically syncs your GA4 data daily. GA4 data is typically available within 24-48 hours of collection.
Manual Sync
You can trigger a manual sync at any time from the GA4 settings page. Options include:
- Quick Sync: Fetch the last 7 days of data
- Full Sync: Refresh all data for enabled properties
- Historical Sync: Fetch data from specific date ranges
Data Freshness
Data Latency
GA4 processes data in batches, so there may be a 24-48 hour delay before the most recent data appears. Real-time data is available directly in GA4.
Reports & Exports
Scheduled Reports
Create automated reports combining GA4 and AI visibility data:
- Choose frequency (daily, weekly, monthly)
- Select metrics and dimensions to include
- Add recipients for email delivery
- Export as PDF or HTML
Data Export
Export your GA4 data for use in other tools:
- CSV: Raw data for spreadsheets
- JSON: Structured data for developers
Troubleshooting
Common Issues
No properties showing
Make sure you have access to at least one GA4 property (not Universal Analytics). Check if you're signed into the correct Google account.
Data not syncing
Check the sync logs for errors. You may need to reconnect if your token expired. Also verify the property is enabled for syncing.
Missing AI traffic data
AI traffic detection depends on referrer data. Some users may have privacy settings that block referrer information, which can result in underreporting.
Universal Analytics property
MeasureLLM only supports GA4 properties. Universal Analytics was sunset by Google in July 2024. You'll need to use a GA4 property.
Reconnecting
If you need to reconnect your GA4 account:
- Go to Settings → Integrations → Google Analytics 4
- Click "Disconnect"
- Click "Connect with Google" and re-authorize
- Re-enable your properties
Tip: Combine GA4 traffic data with AI visibility scores to get a complete picture of your online presence. High AI visibility often correlates with increased AI-referred traffic over time.