0.1.5 • Published 4 years ago
nuxt-statcounter v0.1.5
Nuxt Statcounter Modules
Add StatCounter Tag to your nuxt.js application.
Note: this modules is not enabled in dev mode.
You can set environment variable NODE_ENV
to production
for testing in dev mode.
Setup
- Add
nuxt-statcounter
dependency using yarn or npm to your projectnpm i nuxt-statcounter
oryarn install nuxt-statcounter
- Add
nuxt-statcounter
tomodules
section ofnuxt.config.js
modules: [
['nuxt-statcounter', {
sc_project: 'your-project-id', // Example 12345678
sc_security: 'your-security-id', // Example 1a2b3c4d
}],
]
You can find project id and security id on your Statcounter project page, or after sign up process.
Options
sc_project
- Required
- Statcounter Project ID
sc_security
- Required
- Statcounter Security ID
License
MIT © Hamjs