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
- Create a Stats API key in the Plausible team that owns the site. Copy the site's identifier exactly as it appears in Plausible.
- Select Plausible Analytics in the Integration Account Console. Keep the account name
PLAUSIBLEand enter the key in Stats API Key. - Add a Plausible Analytics step in Workflow Studio and select the saved connection under General > Connection.
- Enter the site identifier, reporting window, metrics, and any dimensions. Run the step and check
statusbefore passing the results to the next step.
Inputs
| Input | Type | Purpose |
|---|---|---|
siteId | string | Required site identifier, such as example.com. Use the identifier configured in Plausible. |
metrics | array of strings | Metrics to calculate. Defaults to ["visitors"]. |
dimensions | array of strings | Optional grouping dimensions. Supply up to three distinct values and at most one time dimension. Omit to get an aggregate. |
dateRange | string | Preset reporting window. Supports day, 7d, 28d, 30d, 91d, and month. Defaults to 7d when no custom dates are given. |
startDate, endDate | strings | Optional inclusive custom range in YYYY-MM-DD format, up to 366 days. Supply both dates and leave dateRange unset. |
limit | integer | Maximum rows in one response. Defaults to 100 and accepts 1–500. |
offset | integer | Number 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.
| Grouping | Supported dimensions |
|---|---|
| Page | event:page, visit:entry_page, visit:exit_page |
| Acquisition | visit:source, visit:channel, visit:utm_medium, visit:utm_source, visit:utm_campaign |
| Audience | visit:device, visit:browser, visit:country |
| Time | time: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
| Output | Type | Meaning |
|---|---|---|
status | string | success or error. |
rows | array | Query results. Each row has a metrics object keyed by metric name and a dimensions object keyed by grouping name. |
count | integer | Number of rows returned by this step. |
totalRows | integer | Number of rows reported by Plausible for the query across pages. |
nextOffset | integer | Offset to request when additional rows can be fetched. |
httpStatus | integer | Provider HTTP status when available. |
attempts | integer | Number of provider request attempts. |
error | object | On 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
| Condition | What to check |
|---|---|
VALIDATION_ERROR | Check the site identifier, metrics, dimensions, and date window. |
INTEGRATION_ACCOUNT_REQUIRED or INTEGRATION_ACCOUNT_NOT_READY | Select a ready Plausible Analytics connection with a Stats API key. |
DESTINATION_DENIED | Check whether the workflow network policy allows plausible.io. |
| HTTP 401 or 403 | Confirm the key is valid, was created for the site-owning team, and has Stats API access. |
| HTTP 429 | Space out requests that share the same key. |
RESPONSE_TOO_LARGE | Use a smaller page or a less granular query. |
INVALID_PROVIDER_RESPONSE | Check 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
nextOffsetasoffsetwith 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.