Add your Plausible analytics dashboard to Strapi
A plugin for Strapi that embeds Plausible analytics dashboards.
Currently only Strapi v4 is supported.
With npm
npm install strapi-plugin-plausible
With yarn
yarn add strapi-plugin-plausible
In the config/plugins.js
file add:
1module.exports = ({ env }) => ({
2 // ...other plugins
3 plausible: {
4 config: {
5 sharedLink: env("PLAUSIBLE_SHARED_LINK")
6 }
7 }
8})
You can create a shared link in Plausible by going to Site settings › Visibility. It looks something like this:
1https://plausible.io/share/example.com?auth=abc123
☝️ Make sure not to enable password protection for this link
☝️ If you're using the strapi::security
middleware with CSP enabled, make sure
to allow plausible.io
as a frame-src
. Your config/middlewares.js
should look something like:
1 {
2 name: "strapi::security",
3 config: {
4 contentSecurityPolicy: {
5 useDefaults: true,
6 directives: {
7 "frame-src": ["https://plausible.io"],
8 ...
For Strapi documentation, please go to the official Strapi documentation.
For questions and issues with this plugin use one of the following channels:
Made in Utrecht by Devtastic 👨💻🌱🇪🇺.
npm install strapi-plugin-plausible
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.