https://github.com/its-devtastic/strapi-plugin-plausible
📈 Plugin for adding Plausible analytics to Strapi
https://github.com/its-devtastic/strapi-plugin-plausible
Last synced: 12 months ago
JSON representation
📈 Plugin for adding Plausible analytics to Strapi
- Host: GitHub
- URL: https://github.com/its-devtastic/strapi-plugin-plausible
- Owner: its-devtastic
- License: mit
- Created: 2022-02-17T15:38:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T07:25:35.000Z (about 2 years ago)
- Last Synced: 2025-06-07T05:45:42.862Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1020 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
A plugin for [Strapi](https://github.com/strapi/strapi) that embeds [Plausible](https://plausible.io) analytics dashboards.
## Supported Strapi version
Currently only Strapi v4 is supported.
## Installation
With `npm`
```bash
npm install strapi-plugin-plausible
```
With `yarn`
```bash
yarn add strapi-plugin-plausible
```
In the `config/plugins.js` file add:
```js
module.exports = ({ env }) => ({
// ...other plugins
plausible: {
config: {
sharedLink: env("PLAUSIBLE_SHARED_LINK")
}
}
})
```
You can create a shared link in Plausible by going to _Site settings › Visibility_.
It looks something like this:
```text
https://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:
```js
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"frame-src": ["https://plausible.io"],
...
```
## Support
For Strapi documentation, please go to [the official Strapi documentation](https://strapi.io/documentation/).
For questions and issues with this plugin use one of the following channels:
- [GitHub](https://github.com/its-devtastic/strapi-plugin-plausible/issues) (Bug reports, Contributions, Questions and Discussions)
- [E-mail](mailto:hi@devtastic.co) - We'll respond as soon as possible
## 📝 License
[MIT License](LICENSE.md)
Made in Utrecht by [Devtastic](https://devtastic.build/) 👨💻🌱🇪🇺.