nuxt-amplitude
Amplitude module for Nuxtjs
4,003
| Install | |
|---|---|
npm install nuxt-amplitude |
|
| Latest Version: | 0.1.2 |
| License: | MIT |
| Last Updated: | Oct 18, 2018 |
| Links: | GitHub · npm |
Maintainer: calvin.peak
nuxt-amplitude
Amplitude module for Nuxtjs
Features
Amplitude module for nuxtjs via vue-amplitude module.
Setup
- Add
nuxt-amplitudedependency using yarn or npm to your project - Add
nuxt-amplitudetomodulessection 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 installornpm install - Start development server using
npm run dev
License
Copyright (c) Calvin Huang calvin.peak@capslock.tw
Version History
| Version | Released | License |
|---|---|---|
| 0.1.2 | MIT |