
A Strapi plugin to display an embedded Pirsch dashboard.
released October 21, 2025
npm install @fresh.codes/strapi-plugin-pirschA Strapi v5 plugin that provides an embedded Pirsch analytics dashboard within the Strapi admin interface.
npm install @fresh.codes/strapi-plugin-pirschhttps://your-dashboard.pirsch.io)Note: There are additional query params you can add to your access link (like &ui=hide).
If you have the strapi::security middleware enabled, update your config/middlewares.ts:
export default [
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'frame-src': ["'self'", 'https://*.pirsch.io'],
},
},
},
},
]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:
export default [
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'frame-src': ["'self'", 'https://stats.example.com'],
'connect-src': ["'self'", 'https://api.pirsch.io'],
},
},
},
},
]The plugin registers two permissions that can be managed in Settings → Roles & Permissions:
By default, only Super Admins have access. You can grant permissions to other roles as needed.
Made by Fresh Codes.
Don't have Pirsch yet? Sign up here (affiliate link).
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
