Skip to content

Latest commit

 

History

History
executable file
·
47 lines (35 loc) · 1.81 KB

README.md

File metadata and controls

executable file
·
47 lines (35 loc) · 1.81 KB

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 calvin.peak@capslock.tw