nuxt-ackee
v2.0.0
Published
Nuxt.js module for Ackee analytics
Downloads
56
Readme
nuxt-ackee
Nuxt.js module for Ackee analytics
Setup
- Add
nuxt-ackee
dependency to your project
yarn add --dev nuxt-ackee # or npm install --save-dev nuxt-ackee
- Add
nuxt-ackee
to thebuildModules
section 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 install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Sergey Bedritsky sergey.bedritsky@gmail.com