Plausible icon

Plausible

Interact with the Plausible API

Overview

This n8n node allows you to interact with the Plausible API, specifically to delete a site from your Plausible account. The "Delete" operation under the "Site" resource is used to remove a specified domain (site) from Plausible analytics. This can be useful for managing your list of tracked sites, especially when you no longer wish to monitor analytics for a particular domain.

Example use cases:

  • Automating the cleanup of old or deprecated domains from your analytics dashboard.
  • Integrating with other workflows that manage website lifecycles, ensuring analytics data is only collected for active sites.

Properties

Name Type Meaning
Currently, this API is in private preview and therefore it's not possible to acquire an API key through the dashboard. Please contact Plausible to get an udpated API key. notice Informational notice about API access restrictions. No user input required.
Domain string Domain of the site to use. Specifies which site (by its domain name) will be deleted from Plausible.

Output

The output will typically be a JSON object indicating the result of the deletion request. While the exact structure depends on the Plausible API response, it usually includes:

  • A status indicator (e.g., success or error)
  • Possibly a message confirming deletion or describing any issues

Example output:

{
  "status": "success",
  "message": "Site deleted successfully"
}

If the node supports binary output, it is not relevant for this operation.

Dependencies

  • External Service: Requires access to the Plausible API.
  • API Key: You must obtain an updated API key by contacting Plausible, as the API is currently in private preview.
  • n8n Credentials: The node expects a credential named plausibleApi to be configured with the necessary authentication details.

Troubleshooting

  • Missing or Invalid API Key:
    Error: "401 Unauthorized" or similar.
    Resolution: Ensure you have contacted Plausible for API access and correctly configured your credentials in n8n.

  • Domain Not Found:
    Error: "404 Not Found" or similar.
    Resolution: Double-check the domain value; ensure it matches exactly with the site registered in Plausible.

  • Permission Denied:
    Error: "403 Forbidden".
    Resolution: Make sure your API key has sufficient permissions to delete sites.

  • SSL Certificate Issues:
    If using self-signed certificates, set the appropriate option in your credentials.

Links and References

Discussion