Amplitude module for Nuxtjs
Amplitude module for nuxtjs via vue-amplitude
module.
- Add
nuxt-amplitude
dependency using yarn or npm to your project - Add
nuxt-amplitude
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'nuxt-amplitude', { apiKey: '[Your amplitude API_KEY]' }
]
}
Prop | |
---|---|
apiKey | API Key of Amplitude |
userId (optional) | Initialize Amplitude instance with user id |
config (optional) | The rest configs you can use simply same to Amplitude-Javascript https://amplitude.zendesk.com/hc/en-us/articles/115001361248#settings-configuration-options |
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c) Calvin Huang calvin.peak@capslock.tw