ETLMCPData Conveyance Works
Log in Start free
Guides

Connecting GA4: property ID and access

Which GA4 ID the Data API wants (the numeric property ID, not the G- measurement ID), what access your Google user needs, and the scope etlmcp asks for.

Coming This connector is coming.

The Google Analytics Data API reads reports by the property ID, a plain number such as 123456789, never by the measurement ID that starts with G-. The measurement ID names one web data stream; the property ID names the whole property. When the GA4 connector is available, you type neither: you sign in with Google, etlmcp asks for read-only Analytics access (the analytics.readonly scope), lists every property your Google user can open, and you tick the ones to sync.

The two IDs side by side

Property ID Measurement ID
Looks like digits only G- followed by letters and digits
Names the whole GA4 property one web data stream in that property
Where you find it Admin, Property settings Admin, Data streams, the Web tab, the stream's details
Used by the Data API's report requests linking your site to its web data stream

In a Data API request the property is written properties/ followed by the number, and Google's client libraries take it in that form.

Finding the property ID

  1. Open Google Analytics and choose Admin.
  2. Pick the property in the property column or selector.
  3. Open Property settings. The number shown as the property ID is the one you want.

If the property is linked to Firebase, the same number shows in the Firebase console under Project settings, Integrations, on the Google Analytics card. Opening a stream's details to see the G- ID needs the Editor role or above, so a Viewer may not see it at all; you do not need it.

What access your Google user needs

When the connector is available, etlmcp sees exactly what the Google user who signs in sees. It asks Google's Admin API for that user's account summaries, which cover every account and property the user can access, and shows each property by name with its account name in brackets. You can only add properties from that list. Roll-up properties and subproperties are labeled, so you can tell them apart before you tick one.

  • Any role reads data. The Viewer role can see a property's settings and data, and Analyst, Marketer, Editor and Administrator each include it. Viewer is enough for what etlmcp reads.
  • Roles come down from the account. A role given on an account applies to every property in it, and the most permissive role across levels wins. If a property is missing from the list, ask an Administrator to add your Google user to that property or its account.
  • Data restrictions follow you. An Administrator can put the No Revenue Metrics or No Cost Metrics restriction on your user, and Google Analytics then hides those metrics; its standard reports show them as 0. etlmcp reads the restriction from each report and leaves a hidden metric out of the row instead of storing 0, so a missing extra.revenue means "not shown to this user", not "no revenue". To get revenue, connect with a Google user that has no revenue restriction.

The scope etlmcp asks for

When the connector is available, etlmcp asks Google for one Analytics permission, the read-only analytics.readonly scope. Google documents that both Analytics calls etlmcp makes accept it: listing your properties (accountSummaries.list) and running the daily report (properties.runReport). It also asks for your email address and basic sign-in identity, only to record which Google user granted access. It does not ask for the edit scope, so it cannot change your property, its settings or its users.

Each property you tick counts as one source on your plan. Free, for example, allows 3 sources across your organization; see plans.

When access breaks

With the connector available, two failures can stop a GA4 sync.

  • The grant is refused. If Google answers that the token lacks the scope, or that an admin blocks the user, etlmcp marks the connection as needing reconnecting and emails your organization's owners once. While listing properties, the list fails with reconnect {…} first; during a run, the run fails with {…} needs reconnecting. In both, {…} is Google Analytics 4. Connect again and accept the Analytics permission on the consent screen.
  • The property is gone for this user. If the Data API answers permission denied or not found for a property, for instance after someone removed your user from it, the run ends with this ad account is no longer accessible, the source is marked invalid and your organization's owners get one email. Restore the role in Google Analytics, or connect with a Google user that still has it.

What each connector field means, and the fields GA4 leaves empty, is on the GA4 connector page. Hourly token limits per property are on GA4 property quota.

Related

Sources

  1. Property ID — developers.google.com, checked
  2. Measurement ID - Analytics Help — support.google.com, checked
  3. Method: properties.runReport — developers.google.com, checked
  4. Method: accountSummaries.list — developers.google.com, checked
  5. Access and data-restriction management - Analytics Help — support.google.com, checked