Data source

Google Analytics 4, checked against verified attribution

GA4 estimates which channel deserves credit; Attribi verifies it against your CRM. This connection is read-only: Attribi imports session, user, key-event, and revenue metrics from your GA4 property by day and channel, twelve months of history plus every day going forward, and never writes anything back to GA4.

No credit card required · 5-minute setup

What Attribi does with Google Analytics

Read-only GA4 channel import

Imports

Attribi reads session, user, key-event, and revenue metrics by day and channel straight from your GA4 property through Google's Analytics Data API. Only the analytics.readonly scope is requested, and nothing is ever written back to GA4.

12-month historical baseline

Imports

A one-time backfill imports twelve months of GA4 channel history in month-sized chunks, so the comparison has a baseline from before Attribi's own tracking existed on your site.

Daily sync

Imports

Each day Attribi re-pulls the trailing few days of GA4 data, since GA4 itself revises its numbers for roughly 48 hours after they first appear.

GA4 vs verified comparison

Imports

GA4's own session and key-event numbers per channel sit next to the conversions Attribi tracked for the same channel in the Reports section, so a channel GA4 over- or under-credits stands out instead of being taken on faith.

Setting up Google Analytics

  1. 1

    Connect your Google Analytics account

    Sign in with the Google account that manages your GA4 property and grant Attribi read-only access. Attribi requests analytics.readonly and nothing else, so it can never change a report, an audience, or a setting in your GA4 account.

  2. 2

    Pick the GA4 property to import

    Choose the property from the list Attribi reads back from your Google account. Attribi imports twelve months of its history in the background, then keeps daily channel metrics current from that day forward.

  3. 3

    Compare GA4 against verified attribution

    Once channel data lands, Attribi sits GA4's own numbers next to your CRM-verified conversions for the same channel, so a channel GA4 over- or under-credits stands out instead of being taken on faith.

Step-by-step walkthrough: GA4 Revenue vs CRM Revenue: Reconcile the Difference Before Changing Budget · GA4 vs GTM vs CRM: A SaaS Measurement Architecture · Google Says 120. Meta Says 90. Your CRM Says 14. All Three Are Telling the Truth.

What Attribi reads from GA4, and where the two will never agree

Your GA4 property says Paid Search brought 61 conversions last month. Your CRM says it closed five deals. Neither tool can relate the two, because GA4 has never seen a deal and your CRM has never seen a session.

Attribi's Google Analytics 4 attribution comparison runs one Data API report per connected property: sessions, total users, key events and total revenue, by date and session default channel group, under the read-only analytics.readonly scope. It stores the daily rows and shows them beside the leads and deals it tracked for the same channel. It never writes to GA4 and never uploads conversions to it.

What is Google Analytics 4 attribution?

Google Analytics 4 attribution is GA4's assignment of sessions and key events to a channel, built from the source and medium its tag observed and the attribution model set on the property. It is an estimate made entirely from the tag's own data: it never sees a CRM stage, a deal value, or a lead that arrived with the tag blocked. Attribi imports that channel-level estimate and sets it beside the leads and deals it verified itself, one row per channel.

What exactly does Attribi ask GA4 for?

One request shape, sent to POST https://analyticsdata.googleapis.com/v1beta/properties/{propertyId}:runReport, checked against lib/ga4-metrics-fetch.ts and Google's Data API schema on 12 October 2026.

Request fieldValue Attribi sendsGoogle's definitionColumn
dimensions[0]dateReturned as YYYYMMDDdate
dimensions[1]sessionDefaultChannelGroup"The session's default channel group is based primarily on source and medium"channel, stored verbatim
metrics[0]sessions"The number of sessions that began on your site or app (event triggered: session_start)"sessions
metrics[1]totalUsers"The number of distinct users who have logged at least one event"total_users
metrics[2]keyEvents"The count of key events"key_events
metrics[3]totalRevenue"The sum of revenue from purchases, subscriptions, and advertising", net of refundsrevenue
dateRangesone inclusive startDate to endDate pair
limit, offset100,000 rows a page, paged by offsetGoogle returns at most 250,000 rows a request

The dimension name is the detail this page exists to record. GA4 has both defaultChannelGroup and sessionDefaultChannelGroup; the first is event-scoped, "the key event's default channel group" in the schema. Attribi's first live call on 26 August 2026 used it, and the API accepted the request and returned zero rows, no error. sessionDefaultChannelGroup returned data at once, and it is the grouping GA4's own acquisition reports use. Guides that tell you to request defaultChannelGroup for a channel report are wrong in a way you can check in two minutes.

One more call rides alongside: GET https://analyticsadmin.googleapis.com/v1beta/properties/{propertyId} for the property's currencyCode, so every revenue figure carries its currency.

The data path between a GA4 property and Attribi: the Admin API accountSummaries.list call fills the property picker once, the Data API runReport call with its two dimensions and four metrics fills the ga4_daily_metrics table, and the GA4 Comparison report reads that table beside Attribi's own conversions. Nothing flows back to GA4.

What is the import for, and what is it not for?

It is for one report: the GA4 Comparison section on the Reports page. For each channel it shows GA4 sessions, GA4 key events, Attribi conversions (leads whose last tracked touch was that channel), and the signed difference between the last two. A thirteen-month trend below plots both counts by month, with the months before your tracker's first touchpoint shaded as baseline.

It is not a conversion upload. Attribi uploads qualified and closed-won conversions to Google Ads and Meta Ads; it sends nothing to GA4. It is not user-level: nothing in the request names a user, client ID, session or event. And it is not a revenue comparison, yet. totalRevenue is imported with its currency, but the table compares counts only, because Attribi's per-channel revenue depends on the attribution model you have selected and the GA4 figure may be in a different currency from your CRM.

Which Google scope does Attribi use, and what did Google verify?

The OAuth request in app/api/oauth/google-analytics/init/route.ts asks for one scope, https://www.googleapis.com/auth/analytics.readonly, with access_type: 'offline', prompt: 'consent' and include_granted_scopes: true. On the consent screen it renders as "See and download your Google Analytics data". There is no analytics.edit request and no write call anywhere in the GA4 code.

Google classes analytics.readonly as a sensitive scope, so the app goes through verification. Attribi's submission went in on 21 September 2026 and Google approved the scope on 22 September 2026. The feature had launched on 26 August 2026 because a live client needed it; for those four weeks the consent screen showed the unverified-app interstitial. It no longer does.

The property picker uses the Admin API's accountSummaries.list, which analytics.readonly authorises, at 200 summaries a page, the documented maximum. One property per workspace.

When does it sync, and how far back?

The backfill runs once, when you pick the property. The window runs from the first day of the calendar month twelve months back to today, one job per calendar month, so a pick on 12 October 2026 produces thirteen jobs: October 2025 through September 2026, plus 1 to 12 October. They are published sixty seconds apart, so the last fires about twelve minutes after the first; the Reports page says "roughly the first 15 minutes" while this runs. A failed chunk is recorded on its own job row and never touches the connection's health counter, so a transient failure mid-backfill cannot raise a false disconnect alert.

The daily sync runs at 03:30 UTC. A QStash schedule, 30 3 * * *, registered in Upstash on 26 August 2026, enqueues one ga4_sync job per promoted property. Each job re-reads today plus the three days before it and upserts on the unique key, so re-running is harmless. The window exists because Google's data freshness page says "data processing can take 24-48 hours" and that report data "may change after the daily data becomes available" (read 12 October 2026).

The daily job is the health signal: a 401 or 403 from the Data API renders a "Reconnect Google Analytics" chip on the Connections page, and a 5xx is retried with backoff.

GA4 key events, Google Ads conversions, CRM outcomes: which is which?

Three things get called a conversion, and the comparison only works if you keep them apart.

SignalDefined whereCounted howReaches Attribi how
GA4 key eventAdmin, Key events page in your propertyFrom the moment the event is marked; the schema says marking "affects reports from time of creation"The keyEvents metric, by session channel and day
Google Ads conversionGoogle Ads, or imported from GA4 through Analytics, Advertising, Conversion managementBy click and conversion window; Google Paid Channels by default for importsNot read from GA4. Attribi uploads to Google Ads; it does not read conversions back
CRM outcomeYour CRM's stage, or a Shopify orders/paid webhookOne per lead, with value and currencyThe CRM pull, then markLeadQualified or markLeadClosedWon

Key events are the one most often missing. GA4 counts nothing as a key event until an admin marks it, and the marking is not retroactive. When the two production properties connected at the time were checked on 22 September 2026, every row in thirteen months carried zero key events, because neither site had marked any. A table of zeros would read as "GA4 under-credits every channel", so the report detects this case and says instead that the property has no key events.

A Google Ads conversion imported from GA4 is a copy of a key event with Google Ads' attribution applied; Google's import page (read 12 October 2026) notes that view-through conversions are not available for imports. Three counts of three things, and the useful question is not which is right but why they differ.

How much of the Data API quota does this use?

Google's Data API quotas page, read 12 October 2026, sets per-property limits:

QuotaStandard propertyAnalytics 360
Core tokens per property per day200,0002,000,000
Core tokens per property per hour40,000400,000
Core tokens per project per property per hour14,000140,000
Concurrent requests per property1050
Server errors per project per property per hour1050

Google says most requests cost ten tokens or fewer. Attribi sends thirteen at connect time, then one a day: a fraction of a percent of the budget you share with every other tool reading the property. The concurrency limit is why the backfill chunks are staggered, and the server-error quota is why a 5xx is retried with backoff rather than at once.

A worked example: one channel from sessions to deals

Illustrative numbers for the Google Ads row, 1 to 30 September 2026, on a B2B site with a CRM connected. Attribi's Google Ads row folds five GA4 groups: Paid Search, Display, Paid Shopping, Paid Video and Cross-network.

One channel, two ledgers: GA4 shows 4,820 sessions and 61 key events for the Google Ads row over 30 days; Attribi shows 74 leads, 12 qualified and 5 closed won worth 41,500 US dollars. A dotted divider reads: no user-level join.

What GA4 contributes. 4,120 Paid Search sessions, 410 Display, 290 Paid Video: 4,820 sessions. The site marked generate_lead as a key event on 1 September, so the month shows 61 key events. Total revenue is zero; the site has no purchase events.

What Attribi contributes. 74 leads whose last tracked touch carried a gclid, gbraid or wbraid; 12 reached the CRM's qualified stage and 5 closed, for 41,500 US dollars. Spend for the same days, from the Google Ads spend import, was 9,640 US dollars.

The discrepancy column reads minus 13. Nine leads came from browsers where the GA4 tag did not load, and four from a page where the thank-you redirect fired before generate_lead did. Attribi's tracker saw all thirteen because it records the lead in the form's own submit handler. Negative is the normal direction for lead gen; positive usually means a key event firing more than once per lead.

What the two ledgers give together. Sessions to leads: 1.5 percent. Leads to qualified: 16 percent. Qualified to closed: 42 percent. Cost per lead: 130 dollars. Cost per closed deal: 1,928 dollars. Return on spend: 4.3 times. GA4 alone gives the first number and no deals; the CRM alone gives the deals and no sessions.

What neither can say. Which of the 4,820 sessions became the 5 deals. GA4's sessions are an aggregate with no identity attached, and Attribi never asks for one.

Where GA4 and Attribi will never agree

No user-level join. The rows are date by channel, and there will not be a session to lead mapping through this scope.

The channel vocabularies differ. Google's default channel group page listed 19 groups plus the Unassigned fallback on 12 October 2026; older write-ups, including the comment in Attribi's own channel map, count 18. Attribi maps them at read time, in lib/ga4-channel-map.ts:

GA4 groupAttribi channel
Paid Search, Display, Paid Shopping, Paid Video, Cross-networkGoogle Ads
Paid SocialMeta Ads
Organic Social, Organic VideoSocial
Referral, AffiliatesReferral
DirectDirect
Organic SearchOrganic Search
EmailEmail
Organic Shopping, Audio, SMS, Mobile Push Notifications, Unassigned, and any group the map does not name (today AI Assistant and Paid Other)Other

GA4's Paid Search is every paid search engine, so Microsoft Ads clicks land in Attribi's Google Ads row on the GA4 side. LinkedIn Ads, TikTok Ads, Microsoft Ads and Snapchat Ads have no GA4 group of their own, so their GA4 columns show a dash, not a zero.

Key events start at the marking date. Months before it are zero in GA4 and real in Attribi. The report disables the key event comparison when the property has none in the thirteen-month read.

Sampling. Google's sampling page says sampling may occur when the events behind a request exceed 10 million on a standard property, or up to 1 billion on Analytics 360 (read 12 October 2026). It does not exempt the Data API, and the response does not say whether a figure was sampled.

Thresholding. GA4 withholds rows to stop anyone inferring an individual, and Google says "you can't adjust them". The documented trigger is demographic data, which this request does not include, but a withheld row would not arrive, and Attribi cannot tell it from a day with no traffic.

Revisions after day four. The freshness page says attribution credit for key events can change for up to 12 days and some data can arrive up to 7 days late. A row that changes on day five or later is never re-read.

Common questions about this connection

Why does the GA4 column show a dash for LinkedIn Ads, TikTok Ads, Microsoft Ads and Snapchat Ads? GA4's default channel grouping has no group for those platforms: Paid Social covers every social network and Paid Search every search engine. A dash means "GA4 cannot produce this number", which is different from a zero.

Does Attribi use the revenue it imports from GA4? It is stored with the property's currency and not shown in the comparison table today, until Attribi's own per-channel revenue can be shown under the same attribution model and currency.

Can Attribi match a GA4 session to a lead in my CRM? No. The report returns totals by day and channel with no user, client or session identifier. Matching a click to a lead is what Attribi's own tracker does, with the click ID it captures on landing.

What happens to the imported GA4 history if I disconnect? The connection and its tokens are deleted. The daily rows in ga4_daily_metrics are kept, because the months before your tracker was installed are a baseline that cannot be rebuilt. Deleting the workspace removes them.

Why did the GA4 columns show zero key events for every channel after I connected? Because the property had no event marked as a key event. GA4 counts one only from the moment it is marked, in Admin under Key events, and earlier months stay at zero. Attribi replaces the key event comparison with a note until the property records one.

The takeaway

GA4 is good at the top of the funnel and silent at the bottom. A CRM is the reverse. The GA4 connection puts the two on one row per channel and asks Google for nothing beyond what that row needs. The connection itself is not plan-gated; the CRM pull that supplies the deals side starts on Growth at 99 dollars a month. Every new workspace starts with 30 days on the Pro plan, no card required, which is enough to connect a GA4 property, mark one key event, and watch the first discrepancy column fill in.

Funnel stages

Stages Attribi supports for Google Analytics.

  • Closed Won

Works with

Frequently asked questions

Does Attribi change anything in my GA4 property?

No. The connection requests only the analytics.readonly scope, so Attribi can read channel metrics and never write a report, an audience, or a setting back to GA4.

What does Attribi import from GA4?

Sessions, total users, key events, and revenue, broken out by day and by GA4's session default channel group, the same grouping GA4's own acquisition reports use. Nothing at the user, session, or event level is requested.

Why does the historical import take a while?

Attribi imports twelve months of GA4 history in month-sized chunks to stay inside Google's Analytics Data API quotas, so the comparison has a baseline from before Attribi's own tracking existed on your site. It runs in the background; you do not need to wait for it.

Does this replace my Google Ads or Meta Ads conversion tracking?

No. GA4 is a read-only import used for comparison, not a platform Attribi uploads conversions to or pulls conversions from. Your ad platform connections keep uploading conversions the same way whether or not GA4 is connected.

Is Google Analytics available to connect today?

Yes. Connect from the Connections page with a Google account that can view your GA4 property, pick the property, and the twelve-month backfill starts automatically. The only scope Google asks you to grant is analytics.readonly.

Updated

Connect Google Analytics to Attribi.

Sign up and connect it from the Connections page.

Start Free

No credit card · Free up to 500 visitors a month