nuxt-amplitude-plugin
v0.1.7
Published
Amplitude module for Nuxtjs
Downloads
69
Readme
nuxt-amplitude
Amplitude module for Nuxtjs.
Features
Amplitude module for nuxtjs via vue-amplitude-js
module.
Setup
- Add
nuxt-amplitude-plugin
dependency using yarn or npm to your project - Add
nuxt-amplitude-plugin
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
"nuxt-amplitude-plugin",
{ 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