A Ahrefs

How to integrate with Google Analytics on Ahrefs

beginner 5 min read Updated 2026-03-13
Quick Answer

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

1

Access Account Settings

Log into your Ahrefs account. Click your username in the upper right-hand corner of the dashboard and select Account Settings.
2

Navigate to Integrations

In Account Settings, click the Integrations tab or section to view available connections.
3

Link Google Account

Select 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.
Ensure only the correct Google account is signed in to avoid linking the wrong one.
4

Go to Web Analytics Project

Navigate to the Web Analytics section in the Ahrefs dashboard. Select the specific website property or profile where you want to view GA data.
5

Enable GA Data Display

At the top left of the Web Analytics dashboard, find the toggle labeled GA data: Exclude. Click it to switch to GA data: Include for blended metrics.
6

Adjust Date Range

Click the 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.
Bounce rate and other metrics may differ from GA4 due to calculation variances.
7

Verify Imported Data

Review the dashboard for seamless data blend. Not all GA4 metrics transfer perfectly due to system differences—check for discrepancies in key reports.
Process is UI-only; no API keys, terminal commands, or Measurement IDs needed.
8

Check for Auto-Detection

If prompted during connection, Ahrefs auto-selects the profile with most complete data coverage. Manually select if auto-detection fails.

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.