A plugin for Strapi that embeds Plausible analytics dashboards.
Supported Strapi version
Currently only Strapi v4 is supported.
Installation
With npm
npm install strapi-plugin-plausible
With yarn
yarn add strapi-plugin-plausible
In the config/plugins.js
file add:
module.exports = {
// ...other plugins
plausible: {
config: {
sharedLink: "<YOUR SHARED LINK>"
}
}
}
You can create a shared link in Plausible by going to Site settings › Visibility. It looks something like this:
https://plausible.io/share/example.com?auth=abc123
strapi::security
middleware with CSP enabled, make sure
to allow plausible.io
as a frame-src
. Your config/middlewares.js
should look something like:
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"frame-src": ["https://plausible.io"],
...
Support
For Strapi documentation, please go to the official Strapi documentation.
For questions and issues with this plugin use one of the following channels:
- GitHub (Bug reports, Contributions, Questions and Discussions)
- E-mail - We'll respond as soon as possible
📝 License
Made with