+

Connect Google Analytics 4 to ChatGPT

ChatGPT connects to remote MCP servers in developer mode and signs in with OAuth. Once connected, ChatGPT can read reports, realtime, key events and custom dimensions, and stage changes that wait for your approval. About 2 minutes.

⏱ About 2 minutes9 read · 4 write toolsNo developer token

Step by step

  1. Connect Google Analytics 4 in okaytorun

    Sign in at okaytorun.com, open Connections and connect Google Analytics 4 on its own sign-in screen. Then choose your GA4 properties. okaytorun only ever touches what you select.

  2. Turn on developer mode

    In ChatGPT, open Settings → Apps & Connectors → Advanced and enable Developer mode.

  3. Create the connector

    Create a connector, choose OAuth and paste:

    https://okaytorun.com/api/mcp/okaytorun
  4. Sign in and ask

    Sign in to okaytorun, press Allow, pick okaytorun from the tools menu and try: People are signing up. Why does GA4 show no conversions?

What to ask ChatGPT next

  • People are signing up. Why does GA4 show no conversions?
  • Which channels drove key events last month?
  • Compare landing page engagement for paid vs organic.
  • What happened to traffic yesterday, in realtime?

What ChatGPT can do in Google Analytics 4

9 read tools and 4 write tools. Writes are staged and only run after you approve them in okaytorun. See every Google Analytics 4 tool.

  • ga4_listProperties

    GA4 properties exposed to okaytorun, grouped by account, with resource name ("properties/123") and display name.

    Read
  • ga4_getProperty

    Property settings: display name, time zone, currency, industry, creation time.

    Read
  • ga4_runReport

    GA4 Data API report: dimensions, metrics, up to 4 date ranges (comparisons), filters, ordering, limit. Flags sampling.

    Read
  • ga4_runRealtimeReport

    Events and active users from now back to about 30 minutes.

    Read
  • ga4_getMetadata

    All dimensions and metrics available for this property (API name, UI name, description, custom flag). Use to build valid reports.

    Read
  • ga4_listKeyEvents

    Events marked as key events (conversions), with counting method and creation time.

    Read
  • ga4_listCustomDimensions

    Registered custom dimensions (parameter name, display name, scope). Archived ones are not listed.

    Read
  • ga4_listAudiences

    Audiences defined on the property (name, description, membership duration).

    Read

Questions

Do I need a Google Analytics 4 developer token or API key?

No. You sign in to Google Analytics 4 on its own screen and choose which accounts okaytorun may use. okaytorun never sees your password.

Can ChatGPT change my Google Analytics 4 account on its own?

No. ChatGPT can read data and stage changes, but every change waits for your approval in okaytorun's Changes panel. There is no approve tool for AI clients, and every applied change can be undone on Growth and Plus.

What does it cost?

Every plan starts with a 7-day free trial (card required, not charged until day 8). After that, Basic is $29/mo, Growth $79/mo and Plus $199/mo billed yearly. Tool calls from your own AI client count as operations, which are unlimited on Growth and Plus. See pricing.

ChatGPT says sign-in failed. What now?

Some clients don't support OAuth for remote MCP servers yet. Create a personal access token in okaytorun → Settings → AI clients and add it as Authorization: Bearer adp_pat_….

Your next fix, already drafted.

7-day free trial on every plan. Cancel anytime before day 8.