Strapi plugin logo for Pirsch

Pirsch

A Strapi plugin to display an embedded Pirsch dashboard.

thumbnail for Pirsch

Strapi Plugin for Pirsch

A Strapi v5 plugin that provides an embedded Pirsch analytics dashboard within the Strapi admin interface.

Strapi Pirsch Dashboard

Installation

npm install @fresh.codes/strapi-plugin-pirsch

Configuration

Configure Dashboard URL

  1. Navigate to SettingsPirsch Analytics in your Strapi admin
  2. Enter your Pirsch Access Link (e.g., https://your-dashboard.pirsch.io)
  3. Click Save Settings

Note: There are additional query params you can add to your access link (like &ui=hide).

Content Security Policy (Optional)

If you have the strapi::security middleware enabled, update your config/middlewares.ts:

1export default [
2  {
3    name: 'strapi::security',
4    config: {
5      contentSecurityPolicy: {
6        directives: {
7          'frame-src': ["'self'", 'https://*.pirsch.io'],
8        },
9      },
10    },
11  },
12]

If you're using a custom domain like stats.example.com then you'll need to tweak the CSP policy a bit more to allow for the pirsch api calls to work:

1export default [
2  {
3    name: 'strapi::security',
4    config: {
5      contentSecurityPolicy: {
6        directives: {
7          'frame-src': ["'self'", 'https://stats.example.com'],
8          'connect-src': ["'self'", 'https://api.pirsch.io'],
9        },
10      },
11    },
12  },
13]

Permissions

The plugin registers two permissions that can be managed in Settings → Roles & Permissions:

  • Access the Pirsch Analytics Dashboard: Controls who can view the main analytics dashboard
  • Update Pirsch Analytics Settings: Controls who can configure the dashboard URL

By default, only Super Admins have access. You can grant permissions to other roles as needed.

License

MIT License

Made by Fresh Codes.

Don't have Pirsch yet? Sign up here (affiliate link).

Install now

npm install @fresh.codes/strapi-plugin-pirsch

STATS

No GitHub star yetNot downloaded this week

Last updated

60 days ago

Strapi Version

5.18.1 and above

Author

github profile image for Fresh Codes
Fresh Codes

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.