Skip to content
SocialHelper
Get API key

Google Analytics data, from one API.

Connect Google Analytics once, then run its reports and lookups from your code or your AI agent through one REST API and MCP server.

Live Connects with OAuth 4 tools

Tools

Google Analytics tools.

Call them with POST /api/v1/accounts/{id}/tools/{tool}, or let your agent use list_account_tools and run_account_tool over MCP. Results come back straight away.

list_properties

read-only

List the Google Analytics accounts this login can access, with their GA4 properties (resource name, display name and type).

run_report

read-only

Run a GA4 report: metrics (e.g. activeUsers, newUsers, sessions, screenPageViews, engagementRate, keyEvents, totalRevenue) over a date range, optionally broken down by up to 9 dimensions (e.g. date, sessionDefaultChannelGroup, sessionSource, pagePath, landingPage, country, deviceCategory). Use get_metadata for every name the property supports, including custom ones. Dates are in the property's time zone.

property* string
The GA4 property as list_properties returns it, e.g. "properties/123456789" (the bare number works too). Not the "G-…" measurement ID.
start_date* string
First day (inclusive): YYYY-MM-DD, "NdaysAgo" (e.g. "28daysAgo"), "yesterday" or "today".
end_date* string
Last day (inclusive): YYYY-MM-DD, "NdaysAgo", "yesterday" or "today".
metrics* array<string>
Metric API names, e.g. ["activeUsers", "sessions"].
dimensions array<string>
Dimension API names to group rows by, in order, e.g. ["date", "sessionDefaultChannelGroup"]. Omit for one total row.
dimension_filter object
A GA4 FilterExpression, sent as is, e.g. {"filter": {"fieldName": "country", "stringFilter": {"matchType": "EXACT", "value": "Canada"}}}. Combine with {"andGroup": {"expressions": […]}}, {"orGroup": …} or {"notExpression": …}.
order_by array
GA4 OrderBy objects, sent as is, e.g. [{"metric": {"metricName": "sessions"}, "desc": true}] or [{"dimension": {"dimensionName": "date"}}]. A single object is accepted too.
totals boolean
Also return the metric totals across all rows. default: false
limit integer
Rows to return (1–250000). default: 100
offset integer
Zero-based row offset for paging; row_count is the total. default: 0
keep_empty_rows boolean
Include rows whose metrics are all zero. default: false

run_realtime_report

read-only

Report on the last 30 minutes. Realtime supports fewer names: metrics activeUsers, eventCount, keyEvents, screenPageViews; dimensions such as country, city, deviceCategory, platform, eventName, unifiedScreenName, minutesAgo.

property* string
The GA4 property as list_properties returns it, e.g. "properties/123456789" (the bare number works too). Not the "G-…" measurement ID.
metrics* array<string>
Metric API names, e.g. ["activeUsers"].
dimensions array<string>
Dimension API names to group rows by, e.g. ["country"]. Omit for one total row.
limit integer
Rows to return (1–250000). default: 100

get_metadata

read-only

List the dimensions and metrics a property can report on, including its custom definitions, with their API names, UI names, descriptions and categories.

property* string
The GA4 property as list_properties returns it, e.g. "properties/123456789" (the bare number works too). Not the "G-…" measurement ID.

Connect

Connect Google Analytics once.

Open Accounts in the SocialHelper dashboard and choose Google Analytics. You sign in on Google Analytics’s own screen and approve access; SocialHelper stores the connection encrypted. You don’t need a Google Analytics developer app of your own.

  1. 1

    Open Accounts

    In the dashboard, choose Google Analytics.

  2. 2

    Sign in on Google Analytics

    Approve access on Google Analytics’s own screen.

  3. 3

    Use the account ID

    GET /api/v1/accounts lists the account with its ID, whether it can publish, and its tools.

SocialHelper calls Google Analytics’s official API for you. Google Analytics API reference ↗

FAQ

Google Analytics questions.

Do I need my own Google Analytics developer app?

No. You connect with a normal Google Analytics sign-in through SocialHelper’s own app.

Can my AI agent use Google Analytics?

Yes. Connect the SocialHelper MCP server at https://socialhelper.app/mcp and your agent can list and run Google Analytics’s tools.

How much does it cost?

SocialHelper is free during early access, Google Analytics included.

Ship your Google Analytics integration today.

Create a free account, connect an account and send your first post in a few minutes.