Add Chiffre Analytics to your nuxt.js application
This Nuxt.js module automatically sends first page and route change events to Chiffre Analytics
THIS REPOSITORY IS NOW ARCHIVED. MAINTAINED REPOSITORY HAS BEEN TRANSFERRED TO CHIFFRE ORGANIZATION: https://github.com/chiffre-io/nuxt-chiffre
Install with:
npm install nuxt-chiffre
// or
yarn add nuxt-chiffre
Add nuxt-chiffre
to modules section of nuxt.config.js
:
export default {
modules: [
['nuxt-chiffre'],
],
chiffre: {
projectId: '<chiffre-project-id>',
publicKey: '<chiffre-public-key>',
debug: false
}
}
The Chiffre project identifier.
The Chiffre project public key.
- Default: false
By default, the module is only enabled if:
projectId
is definedpublicKey
is defined- Nuxt.js is not in development mode
process.env.NODE_ENV
is set toproduction
If debug
is true
, the module will always be enabled.
MIT - Made by Romain Clement.