Skip to main content
modiva.ai
Sign In
← All help articles

Connect

Google Analytics 4

AnalyticsOAuthGoogle Analytics 4 developer docs ↗

Google Analytics 4 connects through the standard Google OAuth flow with a single read-only scope. You authorize Modiva on Google's own consent screen — Modiva can then list your accounts and properties and run reports (any metrics × dimensions over a date range, realtime activity, traffic by source, top pages) through one unified API and MCP server. Modiva never changes your Analytics configuration, and Google access tokens are refreshed automatically.

Before you start

  • A Google account with access to at least one GA4 property.

Step-by-step setup

  1. 1

    Sign in to Modiva

    Log in at modiva.ai and open the Dashboard. You need a Modiva account before you can connect any platform — creating one takes a minute and no credit card is required for the free tier.

    The Modiva dashboard after signing in
    The Modiva dashboard — your home for connections, posts and analytics.
  2. 2

    Open Connections → New connection

    In the left sidebar choose Connections, then click New connection. You'll see the full catalogue of platforms grouped by category (Social, Ads and CRM).

    The New connection picker listing every platform
    The connection picker. Use the search box or category filter to find your platform.
  3. 3

    Select Google Analytics 4

    Click the Google Analytics 4 card. Modiva redirects you to Google Analytics 4's official sign-in and permission screen — your password is entered on Google Analytics 4, never on Modiva.

    Selecting the Google Analytics 4 card in the connection picker
    Click Connect on the Google Analytics 4 card to start the secure OAuth flow.
  4. 4

    Authorize Modiva on Google Analytics 4

    Review the permissions Modiva is requesting and approve them. If you manage more than one account, page or profile, pick the one you want Modiva to manage.

    The Google Analytics 4 permission / consent screen
    Google Analytics 4's consent screen. Approve the requested scopes to continue.
  5. 5

    You're connected

    Google Analytics 4 now sends you back to Modiva and the connection appears with a green Connected status. From here it's available to every MCP key and API call in your workspace.

    The Google Analytics 4 connection showing a Connected status
    A healthy connection shows a green dot and the connected account name.

Permissions Modiva requests

When you connect Google Analytics 4, Modiva asks only for the access it needs to run the tools you use. You can revoke it any time from Google Analytics 4 or by disconnecting in Modiva.

  • Read your Analytics accounts and properties
  • Read reports, metrics and dimensions
  • Read realtime activity
  • Stay connected by refreshing access tokens

Troubleshooting & FAQ

Where is my Google Analytics 4 password stored?

Nowhere. You sign in on the provider's own site and Modiva only receives a scoped access token, which is encrypted at rest with AES-256-GCM. Modiva never sees your password.

My connection says Expired or Error — what do I do?

Open Connections, find the platform and click Reconnect (or Refresh token). Providers periodically expire tokens or revoke them when you change your password; reconnecting re-runs the consent screen and restores access.

How do I disconnect?

Open Connections, click the Google Analytics 4 row and choose Disconnect. Modiva deletes the stored token immediately. You can also revoke Modiva from inside Google Analytics 4's own app settings.

Can Modiva change my Analytics settings?

No. The connection uses the analytics.readonly scope, so it can only read reports and metadata — properties, data streams and settings can't be modified through it.

Which properties can Modiva read?

Every GA4 property the connected Google account can access. Use the list-accounts and list-properties tools to discover them, then pass a property id to the report tools.

Does this work with Universal Analytics?

No — the connection uses the GA4 Data API, so it reads GA4 properties only. Universal Analytics was sunset by Google and its API no longer serves data.

Need help with Google Analytics 4?

Fin can answer follow-up questions and walk you through any step.


Google Analytics 4 playbooks

Connected? Put Google Analytics 4 to work with these free growth playbooks.

How to Connect Social Posts to Real Conversions With GA4 and AI Agents