nuxt-ackee
nuxt-ackee copied to clipboard
Nuxt.js module for Ackee analytics
📣⚠📣 nuxt-ackee is moving to @nuxtjs/ackee 📣⚠📣
Ackee module for Nuxt.js has been transferred to the nuxt-community organization. A new version has been released taking advantage of the latest features coming with Ackee. Discover the new doc at ackee.nuxtjs.org!
If you're looking for the old version of this module, check out the v2 branch. The following readme also refers to this old version:
nuxt-ackee
Nuxt.js module for Ackee analytics
📖 Release Notes
Setup
- Add
nuxt-ackeedependency to your project
yarn add --dev nuxt-ackee # or npm install --save-dev nuxt-ackee
- Add
nuxt-ackeeto thebuildModulessection ofnuxt.config.js
{
// use `modules` property is using Nuxt < 2.9.0
buildModules: [
'nuxt-ackee'
],
ackee: {
server: 'https://example.com',
domainId: 'xxx-xxx-xxx',
ignoreLocalhost: false, // defaults to true
detailed: true // defaults to false
}
}
The module will directly record each route (initial + client-side navigation).
It will also expose this.$ackee and context.$ackee on client-side which is an instance of ackee-tracker.
Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
MIT License
Copyright (c) Sergey Bedritsky [email protected]