Google Analytics

Get Google Analytics Report

Read your site's measured sessions, users, signups and other key events, and revenue from Google Analytics 4, by landing page, source, channel, AI assistant, country, device or date, and compare two periods.

1 creditRuns in your Google Analytics account

Endpoint

Parameters

NameTypeRequiredNote
identifieraccount · requiredaccountrequired—
propertyIdstring · requiredstringrequired

Pick a GA4 property, or type its ID (digits).

rangestring · optionalstringoptional

A period ending yesterday on the property's clock. Ignored when a start and end date are given.

One of: last_7_days (Last 7 days), last_28_days (Last 28 days), last_90_days (Last 90 days), last_12_months (Last 12 months)

Default: last_28_days

startDatestring · optionalstringoptional

First day, written YYYY-MM-DD. Give it together with End date.

Example: 2026-11-01

endDatestring · optionalstringoptional

Last day, written YYYY-MM-DD, included.

Example: 2026-11-30

dimensionsarray · optionalarrayoptional

What each row is. Several give one row per combination. Leave empty for one row of totals.

One of: landingPage (Landing page), pagePath (Page path), sessionSource (Source), sessionMedium (Medium), sessionSourceMedium (Source / medium), sessionDefaultChannelGroup (Channel), aiAssistant (AI assistant), country (Country), deviceCategory (Device), date (Date)

metricsarray · optionalarrayoptional

What to count. Default sessions, users and key events.

One of: sessions (Sessions), totalUsers (Users), newUsers (New users), engagedSessions (Engaged sessions), engagementRate (Engagement rate), screenPageViews (Views), keyEvents (Key events (signups, purchases, leads)), sessionKeyEventRate (Session key event rate), totalRevenue (Total revenue), purchaseRevenue (Purchase revenue) and 2 more

keyEventstring · optionalstringoptional

Count one key event only, by its name. List Google Analytics Key Events names them.

Example: sign_up

trafficFromstring · optionalstringoptional

Keep only sessions from AI assistants (ChatGPT, Perplexity, Gemini, Copilot, Claude and others), or from organic search.

One of: all (All traffic), ai_assistants (AI assistants), organic_search (Organic search)

Default: all

filtersrepeating-group · optionalrepeating-groupoptional

Conditions a row must all pass, for example Landing page contains /blog/.

compareTostring · optionalstringoptional

Also read an earlier period and return the change for each row and the totals. Cannot be combined with Group by Date.

One of: none (No comparison), previous_period (The period just before), previous_year (The same dates a year earlier)

Default: none

sortBystring · optionalstringoptional

A metric, or a metric followed by _change when two periods are compared (sessions_change). Default: the first metric, highest first; with a comparison, its largest change either way first.

Example: sessions

sortDirectionstring · optionalstringoptional

For a change, ascending puts the biggest drops first and descending the biggest gains.

One of: asc (Ascending), desc (Descending)

limitnumber · optionalnumberoptional

Most rows to return, 1 to 1000. Default 50.

Default: 50

offsetnumber · optionalnumberoptional

Rows to skip, to read the next page.

Response schema

{
  "type": "object",
  "properties": {
    "rows": {
      "type": "array",
      "description": "Each row: its dimension values by name (with aiAssistant beside a sessionSource that is an assistant), then each metric. With a comparison also previous<Metric> and <metric>Change"
    },
    "notes": {
      "type": "array",
      "description": "Limits of this answer worth repeating to the reader"
    },
    "source": {
      "type": "string",
      "description": "Always Google Analytics"
    },
    "totals": {
      "type": "object",
      "description": "Each metric's total over every row, not only those returned"
    },
    "endDate": {
      "type": "string",
      "description": "Last day covered, YYYY-MM-DD"
    },
    "hasMore": {
      "type": "boolean",
      "description": "True when more rows follow; read on with nextOffset"
    },
    "metrics": {
      "type": "array"
    },
    "measured": {
      "type": "boolean",
      "description": "True: what the site recorded, not an estimate"
    },
    "rowCount": {
      "type": "number"
    },
    "timeZone": {
      "type": "string",
      "description": "The property's time zone, which its dates use"
    },
    "startDate": {
      "type": "string",
      "description": "First day covered, YYYY-MM-DD"
    },
    "totalRows": {
      "type": "number"
    },
    "dimensions": {
      "type": "array"
    },
    "nextOffset": {
      "type": "number"
    },
    "propertyId": {
      "type": "string"
    },
    "trafficFrom": {
      "type": "string"
    },
    "comparedWith": {
      "type": "object",
      "description": "The earlier period (startDate, endDate), when two periods were compared"
    },
    "currencyCode": {
      "type": "string",
      "description": "Revenue currency, when revenue is reported"
    },
    "previousTotals": {
      "type": "object",
      "description": "The same totals for the earlier period, when compared"
    }
  }
}

Get started

How to use this action

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, then connect your account for this app. There’s no API key to manage.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this app’s actions when the job calls for them, along with any other tools it needs.

  3. Make it a workflow

    Add an action as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether each action runs on its own or asks first. When it asks, you see an Allow or Deny card before anything changes in the app.