Step by step
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.
Add the server
Run this in your terminal, then type
/mcpin Claude Code to sign in:claude mcp add --transport http okaytorun https://okaytorun.com/api/mcp/okaytorun
Or use a token (headless, CI)
Create a personal access token in okaytorun → Settings → AI clients:
claude mcp add --transport http okaytorun https://okaytorun.com/api/mcp/okaytorun --header "Authorization: Bearer adp_pat_..."
Ask your first question
Try:
People are signing up. Why does GA4 show no conversions?okaytorun reads live data and stages any change for your approval in the Changes panel.
What to ask Claude Code 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 Claude Code 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.
- Read
ga4_listPropertiesGA4 properties exposed to okaytorun, grouped by account, with resource name ("properties/123") and display name.
- Read
ga4_getPropertyProperty settings: display name, time zone, currency, industry, creation time.
- Read
ga4_runReportGA4 Data API report: dimensions, metrics, up to 4 date ranges (comparisons), filters, ordering, limit. Flags sampling.
- Read
ga4_runRealtimeReportEvents and active users from now back to about 30 minutes.
- Read
ga4_getMetadataAll dimensions and metrics available for this property (API name, UI name, description, custom flag). Use to build valid reports.
- Read
ga4_listKeyEventsEvents marked as key events (conversions), with counting method and creation time.
- Read
ga4_listCustomDimensionsRegistered custom dimensions (parameter name, display name, scope). Archived ones are not listed.
- Read
ga4_listAudiencesAudiences defined on the property (name, description, membership duration).
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 Claude Code change my Google Analytics 4 account on its own?
No. Claude Code 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.
Claude Code 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_….