
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
mixpanel-nuxt
Advanced tools
mixpanel-nuxt
dependency to your project# Using pnpm
pnpm add -D mixpanel-nuxt
# Using yarn
yarn add --dev mixpanel-nuxt
# Using npm
npm install --save-dev mixpanel-nuxt
mixpanel-nuxt
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'mixpanel-nuxt'
],
})
You can use the provided composable to access Mixpanel anywhere.
const mixpanel = useMixpanel()
mixpanel.track('My event')
You just need to set your Mixpanel token in the module options and you're good to go!
By default process.env.MIXPANEL_TOKEN
is used.
You can also disable the module by setting disabled: true
.
export default defineNuxtConfig({
modules: [
'mixpanel-nuxt'
],
mixpanel: {
token: 'your-token',
disabled: false,
config: {
// Mixpanel config
}
}
})
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
v0.0.13
FAQs
Mixpanel module for Nuxt
The npm package mixpanel-nuxt receives a total of 432 weekly downloads. As such, mixpanel-nuxt popularity was classified as not popular.
We found that mixpanel-nuxt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.