We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unusable module, nothing works, mute report
The text was updated successfully, but these errors were encountered:
Whilst the documentation is lacking, the module does work.
nuxt-amplitude
yarn
npm
yarn add nuxt-amplitude --dev npm install nuxt-amplitude --dev
nuxt.config.js
export default { buildModules: [ [ 'nuxt-amplitude', { apiKey: 'AMPLITUDE_KEY', } ] ] }
logEvent()
mounted()
export default { name: 'Index', mounted () { this.$amplitude.getInstance().logEvent('EVENT_NAME'); } }
Hope that helps!
Sorry, something went wrong.
thanks - tried this but get an error.
Cannot read properties of undefined (reading '$amplitude'
I've added this to default.vue.
onMounted(() => { this.$amplitude.getInstance().logEvent('EVENT_NAME'); });
Using cue with Composition API.
No branches or pull requests
unusable module, nothing works, mute report
The text was updated successfully, but these errors were encountered: