Plausible icon

Plausible

Interact with the Plausible API

Overview

The "Plausible" n8n node allows you to interact with the Plausible Analytics API. Specifically, when using the Stats resource and the Realtime Visitors operation, this node retrieves the current number of active visitors on a specified website tracked by Plausible. This is useful for monitoring live traffic, building dashboards, or triggering workflows based on real-time visitor counts.

Practical examples:

  • Displaying the current number of visitors on your site in a dashboard.
  • Sending alerts if real-time visitors exceed a certain threshold.
  • Logging real-time visitor data for further analysis.

Properties

Name Type Meaning
Site ID String Domain of your site in Plausible. This identifies which site's stats to retrieve.

Output

The output will contain a json field with the real-time visitor statistics for the specified site. The structure typically includes:

  • The number of current active visitors.
  • Additional metadata as provided by the Plausible API for real-time visitors.

Note: The exact fields depend on the Plausible API's response for the real-time visitors endpoint.

Dependencies

  • External Service: Requires access to the Plausible Analytics API.
  • API Key: You must provide valid Plausible API credentials (configured in n8n as plausibleApi).
  • n8n Configuration: Ensure the Plausible node is properly set up with the correct domain and credentials.

Troubleshooting

Common issues:

  • Invalid Site ID: If the provided Site ID does not match any site in your Plausible account, the node may return an error or empty results.
  • Authentication Errors: Missing or incorrect API credentials will result in authentication failures.
  • Network Issues: Connectivity problems between n8n and the Plausible API can cause timeouts or errors.

Common error messages:

  • "401 Unauthorized": Check your API key and credentials configuration.
  • "404 Not Found": Verify that the Site ID matches exactly with your Plausible site domain.
  • "Network Error": Ensure n8n can reach the Plausible API endpoint and there are no firewall or DNS issues.

Links and References

Discussion