- Documentation
- Integrations
- Apps
- Plausible Analytics integration
Plausible Analytics integration
Track pageviews and goals and query visitor stats from your clients' Plausible Analytics sites.
What it does
The Plausible Analytics integration lets your agency run privacy-friendly analytics operations on behalf of your clients without leaving TaskJuice. Connect a client's Plausible site once and you can track server-side events and goals, run v2 Stats API queries with full dimension and filter control, fetch aggregate metrics over a period, pull day-bucketed timeseries, and break a metric down by page, source, country, or any other Plausible property. A daily polling trigger snapshots the timeseries so you can fan out scheduled digests, retention reports, or anomaly alerts to the rest of your workflow.
Connect a Plausible account
- Open your workspace in TaskJuice and navigate to Connections.
- Choose Plausible Analytics and click Connect.
- Pick the right host. Use
https://plausible.iofor Plausible Cloud, or the base URL of a self-hosted Plausible install. - In Plausible, open the account menu, choose Settings, scroll to API Keys, generate a new Stats API key, and paste the value into TaskJuice. Stats API access requires a Business plan.
- Enter the client's site domain exactly as it appears in their Plausible dashboard (for example
example.com). Plausible uses this domain as thesite_idon every Stats API request.
See the Plausible Stats API docs for the full key-scoping flow and the rate-limit budget.
Triggers
plausible/daily-stats-snapshotpolls the Plausible timeseries endpoint each cycle and emits one activation per cycle withitemscarrying every day-bucket observed in the configured lookback window. Configure the period, metrics, and poll interval per workflow.
Plausible does not push event webhooks, so polling is the supported trigger shape. Day-bucket granularity means an hourly or daily interval is appropriate; sub-hourly polling burns the Stats API budget without surfacing new data.
Actions
plausible/track-eventposts a pageview or custom goal to Plausible's Events API. Supply the event name (pageviewor any configured goal), URL, optional referrer, optional custom properties, and the original client User-Agent and IP when ingesting from a server.plausible/query-statsruns a v2 Stats API query. Supply metrics, date range, optional dimensions, filters, ordering, and pagination. Returns one row per dimension tuple.plausible/get-aggregatereturns aggregated metrics (visitors, pageviews, bounce rate, visit duration, events) over a preset or custom period. Optionalcompare=previous_periodadds period-over-period change.plausible/get-timeseriesreturns a time-bucketed series of metrics with date, month, hour, or minute interval.plausible/get-breakdownreturns a metric broken down by a property (page, source, country, browser, device, UTM tag, etc.) with page-number pagination.
Known limitations
- Stats API access is a Business plan feature. Free and Starter plans can use the Events API endpoint but not the query, aggregate, timeseries, or breakdown endpoints.
- Stats API keys default to a 600 requests per hour budget. When the budget is exhausted Plausible returns a 429, which TaskJuice surfaces as a retryable error so downstream resilience policies can back off.
- The Events API does not require an API key; it identifies the destination site by the
domainvalue in the request body, which TaskJuice fills from the connection's site ID. - When ingesting events from a server, supply the original client User-Agent and IP. Forwarding your own server's IP causes Plausible's bot filter to drop the event. The
track-eventaction surfaces thex-plausible-droppedresponse header on the action output. - Self-hosted Plausible instances must be reachable from TaskJuice's network. Behind-VPN or local-only deployments are not supported.
- Plausible does not push event webhooks. Realtime fan-out is not possible; use the polling trigger or the action set inside a scheduled workflow.