nuxt-amplitude

Amplitude module for Nuxtjs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nuxt-amplitude
0.1.24 years ago4 years agoMinified + gzip package size for nuxt-amplitude in KB

Readme

nuxt-amplitude
npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style
Amplitude module for Nuxtjs

📖 Release Notes

Features

Amplitude module for nuxtjs via vue-amplitude module.

Setup

  • Add nuxt-amplitude dependency using yarn or npm to your project
  • Add nuxt-amplitude to modules section of nuxt.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 or npm install
  • Start development server using npm run dev

License

MIT License
Copyright (c) Calvin Huang