Last updated: 4 July 2026

Google Analytics

Google Analytics

Live
Auth: OAuth (Connect Link) · Plans: Free, Starter, Business, Enterprise · Tools: 4 · Category: Marketing & Analytics

Query site traffic, real-time user counts, and top content from Google Analytics 4.

Who needs this: Marketing teams and product managers who want AI to answer website performance questions instantly.

Example questions once connected

  • How many users visited the site today?
  • What are the top 5 pages this week?
  • How many people are on the site right now?
  • What is our bounce rate for the pricing page this month?

Step-by-step setup

  1. Open the connector in your Msharti dashboard. Go to Connectors → Google Analytics → Connect. Msharti creates a unique OAuth link. Click Open in Browser.
  2. Log in with your Google account. A consent screen lists what Msharti can access. Review the permissions and click Accept or Continue.
  3. Confirm the connection in Msharti. You will be redirected back to the dashboard. The connector shows Connected with a green dot. Tokens are stored securely and refreshed automatically.

Tool reference

These are the tools the AI can call on this connector. Each tool fires automatically when you ask a relevant question.

run_report() Run a Google Analytics 4 report with custom dimensions, metrics, date ranges, and filters.
Inputs natural language query (AI builds the GA4 report spec)
Try asking "Show me sessions, users, and bounce rate for the pricing page last 30 days"
Returns /pricing: 4,218 sessions, 3,102 users, 48.2% bounce rate. Avg. session: 2m 14s. Top source: organic (62%).
realtime_users() Return the number of users active on the site in the last 30 minutes.
Inputs optional: property_id
Try asking "How many people are on the site right now?"
Returns 47 active users. Top pages: /pricing (12), /docs (8), / (7). Top country: Kenya (34).
top_pages() Return the top pages by sessions or pageviews for a given date range.
Inputs optional: metric (sessions/pageviews), date_range, limit
Try asking "What were the top 10 pages last week?"
Returns 1. / (4,218 sessions) 2. /pricing (2,341) 3. /docs (1,892) 4. /mcp-catalog (1,204) 5. /docs/connectors (891)...

Limits

  • Connects to Google Analytics 4 (GA4) properties only. Universal Analytics is no longer supported.
  • Realtime data reflects the last 30 minutes. Standard reports may have a 24-48 hour data processing lag.
  • GA4 API quota: 200,000 tokens/day. Heavy reporting workloads may need to be spread across the day.
Need help? [email protected] — Nairobi-based, same time zone.