New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

strapi-plugin-plausible

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-plugin-plausible

Add your Plausible analytics dashboard to Strapi.

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
77
140.63%
Maintainers
1
Weekly downloads
 
Created
Source
Logo - Strapi Plausible plugin

Strapi v4 - Plausible plugin

Add your Plausible analytics dashboard to Strapi

GitHub package.json version Monthly download on NPM

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 = ({ 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:

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:

 {
    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

MIT License

Made in Utrecht by Devtastic 👨‍💻🌱🇪🇺.

Keywords

strapi

FAQs

Package last updated on 18 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts