Skip to content

Analytics

Privacy-focused customer analytics for Medusa v2.

Inside your medusa backend root folder:

Terminal window
yarn add medusa-plugin-analytics

Replace “yarn add” with the correct command for your package manager if you are using (for example) npm, pnpm, or bun.

Enable in your medusa-config.ts file. Example:

module.exports = defineConfig({
//... other config
modules: [
{
resolve: '@medusajs/medusa/analytics',
options: {
providers: [
{
resolve: 'medusa-plugin-analytics',
id: 'private'
}
]
}
}
// ... other modules
]
})