nuxt-cloudflare-analytics
Add Cloudflare Web Analytics to your Nuxt Project
Nuxt Cloudflare Web Analytics Modules
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-cloudflare-analytics
dependency using yarn or npm to your projectnpm i nuxt-cloudflare-analytics
oryarn install nuxt-cloudflare-analytics
- Add
nuxt-cloudflare-analytics
tomodules
section ofnuxt.config.js
modules: [
['nuxt-cloudflare-analytics', {
token: 'your-token', // Example 1a2b3v4a5er6ac7r8afd
}],
]
You can find token on Web Aalytics Page at Cloudflare Dashboard.
Options
token
- Required
- Cloudflare analytics token
License
MIT © Hamjs