Actions7
- Site Actions
- Stats Actions
Overview
This n8n node allows you to create a new site in your Plausible Analytics account via the Plausible API. It is useful for automating the onboarding of new domains into your analytics workflow, such as when launching new websites or managing multiple client sites. For example, you could use this node in an automation that provisions a new website and immediately adds it to your Plausible dashboard for tracking.
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: The API is in private preview; you must contact Plausible to obtain an API key. |
| Domain | string | Domain of the site to use. This is the main identifier for the new site you want to add (e.g., "example.com"). |
| Additional Fields | collection | Optional additional settings for the site. Contains sub-fields such as Timezone. |
| └─ Timezone | string | Timezone name according to the IANA database. Defaults to Etc/UTC if left blank. Used to set the site's reporting timezone. |
Output
The node returns a json object containing the response from the Plausible API after creating the site. The structure typically includes details about the newly created site, such as its domain and configuration. The exact fields depend on the Plausible API's response, but you can expect at least the domain and possibly other metadata related to the site.
Dependencies
- External Service: Requires access to the Plausible Analytics API.
- API Key: You must obtain an API key directly from Plausible, as the API is currently in private preview.
- n8n Credentials: You need to configure the
plausibleApicredential in n8n, including the API key and the base domain for the API.
Troubleshooting
- Authentication Errors: If you receive errors related to authentication, ensure you have obtained a valid API key from Plausible and configured it correctly in n8n.
- Invalid Domain: If the domain field is incorrect or already exists, the API may return an error. Double-check the domain value.
- Timezone Issues: If you provide an invalid timezone, the API may reject the request. Use a valid IANA timezone string.
- API Access: Since the API is in private preview, access issues may occur if you have not been granted permission by Plausible.