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
plugins: [
{
resolve: 'medusa-plugin-analytics',
options: {}
}
// ... other plugins
]
})