nuxt-amplitude
v0.1.2
Published
Amplitude module for Nuxtjs
Downloads
545
Readme
nuxt-amplitude
Amplitude module for Nuxtjs
Features
Amplitude module for nuxtjs via vue-amplitude
module.
Setup
- 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]' }
]
}
Options
| |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|
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Calvin Huang [email protected]