Skip to main content

Plausible Analytics ExecModule

Overview​

PlausibleModule reads website metrics from the Plausible Stats API v2. Use an aggregate query for a weekly scorecard, group by day to track a launch, or break down visitors by source and campaign to see where traffic came from. The step returns named metrics and dimensions that subsequent workflow steps can use directly.

Usage​

  1. Create a Stats API key in the Plausible team that owns the site. Copy the site's identifier exactly as it appears in Plausible.
  2. Select Plausible Analytics in the Integration Account Console. Keep the account name PLAUSIBLE and enter the key in Stats API Key.
  3. Add a Plausible Analytics step in Workflow Studio and select the saved connection under General > Connection.
  4. Enter the site identifier, reporting window, metrics, and any dimensions. Run the step and check status before passing the results to the next step.

Inputs​

InputTypePurpose
siteIdstringRequired site identifier, such as example.com. Use the identifier configured in Plausible.
metricsarray of stringsMetrics to calculate. Defaults to ["visitors"].
dimensionsarray of stringsOptional grouping dimensions. Supply up to three distinct values and at most one time dimension. Omit to get an aggregate.
dateRangestringPreset reporting window. Supports day, 7d, 28d, 30d, 91d, and month. Defaults to 7d when no custom dates are given.
startDate, endDatestringsOptional inclusive custom range in YYYY-MM-DD format, up to 366 days. Supply both dates and leave dateRange unset.
limitintegerMaximum rows in one response. Defaults to 100 and accepts 1–500.
offsetintegerNumber of rows to skip. Defaults to 0 and accepts 0–100,000.

Supported metrics include visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, and events. Plausible counts both pageviews and custom events in events.

GroupingSupported dimensions
Pageevent:page, visit:entry_page, visit:exit_page
Acquisitionvisit:source, visit:channel, visit:utm_medium, visit:utm_source, visit:utm_campaign
Audiencevisit:device, visit:browser, visit:country
Timetime:day, time:week, time:month

Plausible applies its own compatibility rules to combinations of metrics, dimensions, and dates. If a query is rejected, simplify the combination and check it against the Stats API reference.

Outputs​

OutputTypeMeaning
statusstringsuccess or error.
rowsarrayQuery results. Each row has a metrics object keyed by metric name and a dimensions object keyed by grouping name.
countintegerNumber of rows returned by this step.
totalRowsintegerNumber of rows reported by Plausible for the query across pages.
nextOffsetintegerOffset to request when additional rows can be fetched.
httpStatusintegerProvider HTTP status when available.
attemptsintegerNumber of provider request attempts.
errorobjectOn failure, a sanitized code, message, and retryable flag.

IntegrationAccount Requirements​

Use an authorized, saved READY IntegrationAccount. The connector checks the saved account name PLAUSIBLE when selecting credentials. Stats API Key stores the key in the protected apiKey field. The Stats API requires a Plausible Business plan. A key can query sites owned by its issuing team, so create it under the team that owns the target site. The connector requests read access for Stats API queries and sends the key as an HTTPS Bearer credential. Keep the key in the saved connection and out of step inputs and downstream outputs.

Configuration​

Allow plausible.io in the workflow's outbound network policy. The connector uses the Plausible Cloud endpoint and refuses redirects. Choose a fixed reporting window for reproducible comparisons or a preset when each run should use a relative window.

Operations​

The connector sends one read-only POST /api/v2/query. When you include a time dimension, it requests chronological order. Otherwise it sorts by the first metric in descending order. It adds the remaining dimensions as ascending tie-breakers. Each response is capped at 2 MiB.

Errors and Failure Modes​

ConditionWhat to check
VALIDATION_ERRORCheck the site identifier, metrics, dimensions, and date window.
INTEGRATION_ACCOUNT_REQUIRED or INTEGRATION_ACCOUNT_NOT_READYSelect a ready Plausible Analytics connection with a Stats API key.
DESTINATION_DENIEDCheck whether the workflow network policy allows plausible.io.
HTTP 401 or 403Confirm the key is valid, was created for the site-owning team, and has Stats API access.
HTTP 429Space out requests that share the same key.
RESPONSE_TOO_LARGEUse a smaller page or a less granular query.
INVALID_PROVIDER_RESPONSECheck for a provider incident or unexpected response shape.

Each request has a 20-second timeout. The connector can retry once for a transient network or provider failure and waits up to five seconds between attempts. If Plausible requests a longer delay, schedule the query for later. Error details omit credentials and raw provider responses.

Example​

A team reviewing a campaign launch uses a fixed seven-day window to compare traffic from acquisition sources. It requests visitors and pageviews for the five sources with the most visitors.

{
"siteId": "example.com",
"metrics": ["visitors", "pageviews"],
"dimensions": ["visit:source"],
"startDate": "2026-10-19",
"endDate": "2026-10-25",
"limit": 5
}

For a site with two sources in that period, the result could look like this.

{
"status": "success",
"rows": [
{
"metrics": {"visitors": 312, "pageviews": 476},
"dimensions": {"visit:source": "Google"}
},
{
"metrics": {"visitors": 183, "pageviews": 224},
"dimensions": {"visit:source": "Direct / None"}
}
],
"count": 2,
"totalRows": 2,
"httpStatus": 200,
"attempts": 1
}

The next step can format the rows into a campaign summary. To compare distinct visitors overall, query the same dates without a breakdown instead of adding visitor counts across sources.

Notes​

  • Pagination. The step fetches one page per invocation. To continue, pass nextOffset as offset with the same site, date window, metrics, and dimensions. Use a fixed window when paging through results across runs.
  • Rate limits. Plausible documents a default limit of 600 requests per hour per Stats API key. Include paginated requests and retries in the schedule budget.
  • API limits. This connector covers aggregates, time series, and the listed breakdowns on Plausible Cloud. Queries with arbitrary filters, imported data, and custom properties are outside its scope. Event ingestion and site administration use separate APIs.
  • Idempotency and destructive behavior. The query leaves site settings and tracked data untouched. A relative date window or newly processed events can change the result of a repeated query.
  • Provider verification. Run a small query with an authorized site before enabling a production schedule.