Skip to content

Prepared customer guide · Updated 10 October 2026

Google Analytics 4 MCP installation

Connect an existing GA4 property to your personal AI client. The first read retrieves its configuration without requesting a visitor report.

Check access

Buyer / billing owner
Manages the purchase and billing. A company purchase alone does not give this person permission to use the MCP.
Company / customer account
Links the product, paid access period and personal licences. Your confirmed membership must match the company that holds the licence.
Personal licence user
Signs in with their own confirmed portal account. An active, paid licence for this exact Google service must be assigned to you. Buyer and user can be the same person; the assignment is still required.

Your Google account must be able to read the existing GA4 property. Use the property ID, not a data stream’s G-… measurement ID. This guide does not require a new property.

You also need Codex CLI or Claude Code installed and set up with your own account. The AI client and its usage are not included in this connection.

Connect Google in the portal

Use your existing invitation or portal account. If your personal licence is missing, clarify its assignment with your company’s billing owner.

Open portal sign-in
  1. Sign in with your personal account

    Open “Connect your Google services”. Choose your company under “Workspace” and the assigned product under “Google service”. If no paid access is shown, resolve your licence and membership first.

  2. Check the existing Google connection

    Use a matching connection marked “Connected”. If none exists, choose “Connect with Google” and your authorized Google account. Leave “Allow changes too” off for this setup. If the portal reports incomplete setup, ONE LOOP must first confirm its configuration.

  3. Select data sources deliberately

    Choose “Load options from Google”. Select only the required data sources and choose “Save selection”. Use “Load more” to see more. New sources are not automatically authorized for your AI client.

    Under “Allow access to Analytics properties”, select the intended property. Its key uses properties/…; copy the full value displayed in the portal.

Google permissions and personal client permissions

The module’s Google read scope is listed below; openid identifies the account. Previously granted permissions for the same Google account may appear together on Google’s consent screen. The actual existing permission may therefore exceed this single read scope. Do not approve an unexplained expansion.

Google scope for reading
https://www.googleapis.com/auth/analytics.readonly
Personal MCP read scope
mcp:ga4:read

The first read changes neither tracking nor key events. Later reports are limited to 31 days, five dimensions, ten metrics and 10,000 rows; they are not unlimited exports.

Set up your AI client

Copy the “MCP server address” from the portal’s “Connect your assistant” section. It must match the module address below. No token, API key or customer number belongs in the URL. At personal sign-in, check the portal address, client, return destination, module and selected sources; approve only the required read access.

Codex CLI

Run in your own device’s terminal with Codex installed. Then check /mcp in a Codex chat.

codex mcp add one-loop-ga4 --url https://mcp.one-loop.de/google-analytics
codex mcp login one-loop-ga4 --scopes mcp:ga4:read --oauth-client-registration dcr

Official Codex MCP guideOfficial Codex CLI reference

Claude Code

Run in the intended project folder with Claude Code installed. Then open Claude Code, enter /mcp and start authentication for this server.

claude mcp add --transport http --scope local one-loop-ga4 https://mcp.one-loop.de/google-analytics

Official Claude Code MCP guide

Review the requested permissions before “Allow access”. If a client also requests writes, decline and clarify compatibility; do not expand your Google permissions. Restart sign-in when it expires.

Check addresses and mapping

MCP endpoint / OAuth resource
https://mcp.one-loop.de/google-analytics
Sign-in provider / OAuth issuer
https://billing.one-loop.de
Portal module
google_analytics
Google data-source key
properties/…

The OAuth resource is the full module URL, not your Google data-source key. The website uses google-analytics-4 for GA4, while its endpoint is /google-analytics. The shared /mcp address does not belong to these four modules.

Check the first read

Use the exact key saved in the portal. Have your client confirm the data source before reading it. This read changes no Google configuration.

Read tool
ga4_get_property
Parameter for your data source
resource_key

Suggested first chat

Use ONE LOOP GA4. Ask me for the full properties/… key selected in my portal, then call ga4_get_property once with that resource_key. Show only the property configuration. Do not request visitor, event, realtime, metadata or quota reports, or make changes.

Expect the configuration of that exact property. ga4_list_properties shows only your approved selection.

Disconnect access

Choose the revocation that matches your goal. A client authorization, a module connection and shared Google permission are different forms of access. Disconnecting does not cancel a subscription.

  1. Revoke one personal AI client

    Open “Your AI clients” in the portal. Compare client name, Google service, data sources and connection date. Choose “Revoke access” for the matching entry and confirm. The list must then show “Revoked”. Your Google connection and other personal permissions remain; this access requires a new sign-in.

  2. Disconnect this Google module

    Choose “Disconnect this module” on the matching Google connection and confirm. Its AI clients lose access. If “Disconnection pending” appears, ONE LOOP has already blocked access but Google disconnection is not yet confirmed. Use “Finish disconnecting” and check again.

  3. Disconnect shared Google permission

    Only for this goal, choose “Disconnect all linked modules”. Review the affected connections first and confirm “Disconnect listed connections”. This affects the shared Google permission of the listed modules; it replaces neither subscription management nor an individual client revocation.

After portal revocation, you can remove the stored client sign-in from your device. This does not replace confirming revocation in the portal.

Codex CLI

codex mcp logout one-loop-ga4

Claude Code

claude mcp remove --scope local one-loop-ga4

Resolve errors

Property missing / account_not_allowed
Check the Google account, property access and saved portal selection. A measurement ID or a different property key will not match. After changing the selection, authorize the personal client again; additional properties are not included automatically.
No paid access / subscription_required
Check the product, customer account, confirmed membership and your personal licence with the billing owner. A purchase for someone else or an active company invoice is insufficient. Resolve the existing purchase first if payment status is unclear.
No data source / account_not_allowed / scope_missing
Check the Google account, its existing permissions and the saved resource selection. A source must be selected both in the Google connection and the personal client permission. Authorize the client again after changing the selection; do not grant unrelated resources.
Expired login / invalid_grant / invalid_target
Restart personal client sign-in instead of replaying old callback links. Compare the module URL and issuer with this guide. If the portal says Google re-authentication is required, resolve that connection first. Do not share sign-in or callback URLs with support.
authorization_unavailable / rate limit / timeout
For a limit, wait the displayed interval and retry only the small read. If availability problems recur or operator configuration is missing, have ONE LOOP check the service. Do not repeat a write that may already have executed.

For a targeted investigation

Keep the Google service, client and version, affected step, time and displayed error code ready; add a displayed request ID. Share no tokens, passwords, callback URLs or customer data. Licence questions go to your company’s known billing owner. A verified MCP technical support contact is still missing here; use your existing agreed ONE LOOP contact, if available.

Back to the server