Revenue & metrics

Linking AdSense and Google Analytics 4: what data you get, how to set it up, and its limits

Last updated Published By the editorial team6 min3 sources

Key takeaways

  • To link a Google Analytics 4 property with AdSense, you need a Google Account with Administrator access to the AdSense account and Edit permission on the Analytics property.
  • The link is created in AdSense under Account, Access and authorization, Google Analytics integration, then New link.
  • Google says it may take up to 24 hours for the Analytics property to start showing AdSense data after linking.
  • The Google Analytics Data API exposes publisher ad metrics such as Publisher ad clicks and Publisher ad impressions, counted from ad_click and ad_impression events.
  • AdSense reports remain the reference for earnings; Analytics adds sessions, landing pages and user behaviour around those earnings.
Rows of server racks in a data center
Image: Datacenter Server Racks (22370909788),Carl Lender from Sunrise, USA,CC BY 2.0,via Wikimedia Commons.

Linking a Google Analytics 4 property to AdSense brings AdSense ad data into Analytics, so you can see revenue next to sessions, landing pages and traffic sources. You need Administrator access in AdSense and Edit permission on the GA4 property, then create the link in AdSense under Account, Access and authorization, Google Analytics integration. Data can take up to 24 hours to appear.

What do you need before linking?

From Google’s help page Link your Google Analytics 4 property with AdSense:

Requirement Detail
A GA4 property If you have no Analytics account, sign up on the Google Analytics site first
One Google Account with both permissions “Administrator access to your AdSense account and Edit permission on the Google Analytics property”
Open accounts If either your Analytics or AdSense account is closed and you want to link a new one, reopen the closed account and remove the link first
Analytics tag on the site Google’s tip: after linking, “make sure you’ve added the Google Analytics code to your site”

The most common blocker is permissions split across two Google Accounts: one person administers AdSense, another owns the Analytics property. Grant the missing permission to a single account before you start.

  1. In AdSense, click Account, then Access and authorization, then Google Analytics integration.
  2. The “Manage your Google Analytics links” page opens. Here you can view your Analytics links, create new links and delete existing ones.
  3. Click +New Link.
  4. Select the property you want to link from the list.
  5. Click Create link.

Google notes that “it may take up to 24 hours for your Google Analytics account to start showing data.”

What AdSense data do you get in GA4?

GA4 records publisher ad activity as events and exposes them as metrics. The Google Analytics Data API schema defines them:

GA4 API name UI name Official definition
publisherAdImpressions Publisher ad impressions “The number of ad_impression events.”
publisherAdClicks Publisher ad clicks “The number of ad_click events.”
totalAdRevenue Total ad revenue “The total advertising revenue from both Admob and third-party sources.”
totalRevenue Total revenue Purchase revenue plus subscription revenue plus ad revenue, minus refunded transaction revenue

Related dimensions in the same schema include adUnitName, adFormat and adSourceName. Their official descriptions are written mainly for apps (for example, ad units are described as “containers you place in your apps”), which reflects GA4’s shared web and app data model.

The value of these metrics is the combination with GA4 dimensions that AdSense does not have:

Question GA4 view you can build
Which landing pages start the most valuable sessions? Landing page with ad revenue
Which acquisition channels bring revenue, not just traffic? Session source / medium with ad revenue
Do engaged users earn more? Engagement metrics alongside ad revenue
Which audiences or user segments monetize? Audiences or comparisons with ad revenue

Pulling the data with the GA4 Data API

If you prefer scripts to the interface, the Data API basics guide documents the runReport method. A request combining the landing page dimension (defined as “the page path associated with the first pageview in a session”) with the publisher ad metrics:

POST https://analyticsdata.googleapis.com/v1beta/properties/GA_PROPERTY_ID:runReport
{
  "dateRanges": [{ "startDate": "2026-10-01", "endDate": "2026-10-31" }],
  "dimensions": [{ "name": "landingPage" }],
  "metrics": [
    { "name": "sessions" },
    { "name": "publisherAdImpressions" },
    { "name": "publisherAdClicks" },
    { "name": "totalAdRevenue" }
  ]
}

Swap landingPage for sessionSourceMedium (the combined session source and medium) to see which acquisition channels produce ad activity. Keep the date range on closed days, for the same reason as in AdSense: recent data is still being processed.

Turning it into a per-session view

A useful derived figure, which neither product reports directly, is ad revenue per 1,000 sessions for each landing page. Hypothetical illustration with invented numbers:

Landing page Sessions Ad revenue in GA4 Revenue per 1,000 sessions
/guide-a/ 20,000 $90 $4.50
/guide-b/ 20,000 $40 $2.00

Both pages bring the same traffic, but sessions starting on /guide-a/ are worth more than twice as much. That points you to investigate why (more pages per session, a different audience, a better ad layout) before you decide where to invest. Use GA4 for this kind of relative comparison, and confirm totals in AdSense.

What does AdSense already report without GA4?

Before linking, check whether AdSense alone answers your question. The AdSense reporting dimensions already include page URL, traffic source (such as “Google”, “Bing”, “Facebook”, “Other”), country, platform, operating system and browser. GA4 is worth linking when you need session-level context: landing pages, multi-page journeys, engagement, campaigns or audiences. For AdSense-only analysis, see the AdSense reports guide.

Why don’t AdSense and GA4 numbers match?

Expect differences, and decide in advance which tool is the reference for what.

Cause Effect
Different tags AdSense counts from its ad code; GA4 from its own tag. A page missing the GA4 tag earns in AdSense but is invisible in GA4.
Consent choices Users who decline analytics cookies may be modelled or missing in GA4. See Consent Mode v2 and AdSense.
Blockers and browsers Some extensions block analytics but not all ads, or the reverse.
Processing delays Data can take up to 24 hours to appear after linking; recent AdSense earnings are estimates.
Definitions A GA4 page view and an AdSense page view are counted by different systems.
Invalid traffic AdSense removes it from finalized earnings; GA4 may still show the sessions.

The rule of thumb: AdSense for money, GA4 for behaviour. Compare trends and proportions between them, not absolute totals. Ratios such as page RPM should always be computed from AdSense data, as explained in page RPM vs impression RPM.

Troubleshooting

Symptom Check
Your property is not in the list The Google Account you use lacks Edit permission on it, or you are signed in with another account
You cannot open Google Analytics integration Your AdSense user is not an Administrator
No AdSense data after linking Wait up to 24 hours; confirm the GA4 tag is on the pages that show ads
Data only for some pages Templates without the GA4 tag; single-page app route changes not sent to GA4
Link to a new account fails One of the old accounts is closed: reopen it and remove the old link

Privacy notes

Linking does not change what you must disclose to visitors. You remain responsible for your privacy policy and consent setup for both products. See privacy policy requirements for AdSense. If you prefer analytics that do not depend on Google, the trade-offs are covered in open-source analytics next to AdSense.

Common mistakes

  • Using GA4 revenue to compute RPM. Use AdSense earnings and page views.
  • Linking with an account that has only one of the two permissions.
  • Expecting historical backfill. Plan from the link date; Google does not describe the link as importing past data.
  • Treating GA4 click counts as the click count that matters. AdSense clicks, after invalid traffic filtering, are what you are paid on.

Frequently asked questions

What permissions do I need to link AdSense and Google Analytics 4?

Google's help page says you must use a Google Account that has both Administrator access to the AdSense account and Edit permission on the Google Analytics property. If either account was closed and you want to link a different one, you first need to reopen the closed account and remove the old link.

How long does it take for AdSense data to appear in GA4?

Google states it may take up to 24 hours for your Google Analytics account to start showing data after the link is created. Google also advises making sure the Google Analytics code is added to your site, because Analytics can only attribute AdSense activity to pages it actually measures.

Why don't AdSense and GA4 numbers match?

The two products count different things. AdSense counts page views and impressions from its ad code, while GA4 counts events from its own tag, which can be affected by consent choices, blockers, tag placement and filters. AdSense is also where earnings are estimated and finalized. Use AdSense for revenue and GA4 for behaviour and trends.

Can I unlink Analytics from AdSense later?

Yes. The Manage your Google Analytics links page in AdSense lets you view, create and delete links, and Google has a dedicated help article on unlinking an Analytics property from AdSense. Deleting a link stops new AdSense data from flowing into that property.

Sources

  1. Link your Google Analytics 4 property with AdSense · Google AdSense Help
  2. API Dimensions & Metrics (Google Analytics Data API) · Google for Developers
  3. Dimension (AdSense Management API reference) · Google for Developers