How to integrate with Google Analytics on Ahrefs
Log into Ahrefs, link your Google account via Account Settings > Integrations, then in Web Analytics toggle GA data to Include. Adjust date range to All Time for historical GA4 data blended with Ahrefs native tracking. Verify for metric discrepancies due to calculation differences.
Prerequisites
- Active Ahrefs account with Web Analytics access
- Google Account with GA4 property access
- GA4 property set up for your website
- Admin or editor permissions in GA4
- Google Search Console connected (recommended)
Step-by-Step Instructions
Access Account Settings
Account Settings.Navigate to Integrations
Integrations tab or section to view available connections.Link Google Account
Link Google Account or Connect Google Account button. Follow on-screen OAuth authorization prompts to grant Ahrefs access to your Google account and GA4 data. If previously linked for other features like Google Search Console, GA4 data imports automatically for existing profiles.Go to Web Analytics Project
Web Analytics section in the Ahrefs dashboard. Select the specific website property or profile where you want to view GA data.Enable GA Data Display
GA data: Exclude. Click it to switch to GA data: Include for blended metrics.Adjust Date Range
date range picker (defaults to last 30 days). Select All Time to combine historical GA4 data before Ahrefs tracking with native Ahrefs data afterward. A vertical line with Google icon marks the switchover; hover for exact date tooltip.Verify Imported Data
Check for Auto-Detection
Common Issues & Troubleshooting
Wrong Google Account Connected
Click <code>Disconnect</code> in Ahrefs Account Settings > Integrations, sign out of extra Google accounts, then re-authorize with the correct one.
Auto-Detection Fails to Select Profile
Ensure GA4 property exists at analytics.google.com and Google Search Console is set up. Manually select profile if prompted; avoid wrong selection to prevent data issues.
No GA Data Appears After Toggle
Verify admin/editor permissions in GA4, re-link Google account, and check date range includes historical data. Confirm Ahrefs Web Analytics profile matches GA4 property.
Metric Discrepancies Between GA4 and Ahrefs
This is normal due to different calculation methods (e.g., bounce rate). Use Ahrefs tooltip for switchover details and focus on trends over exact matches.
Integration Not Available
Confirm Ahrefs Web Analytics access in your plan. Check Ahrefs dashboard for latest features as rollout evolved post-2024.