Nuxt Analytics
Integrating Proxima Analytics with a Nuxt application is a simple process that can be completed in a few easy steps. To begin, you will need to add the Proxima Analytics tracking code to your Nuxt application.
This can be done by editing the `nuxt.config.js`
file, which is located in the root directory of your Nuxt application.
Open the `nuxt.config.js`
file and add the following code to the `head`
section:
export default {
head: {
__dangerouslyDisableSanitizers: ["script"],
script: [
{
defer: true,
"data-site": "YOUR_PROXIMA_ID",
src: "https://buzz.proxima.so/script.js"
},
]
},
// ...
}
You can also override the default Proxima Analytics Script settings using the `data-*`
attributes. For example, you can set the `data-manual`
attribute to `true`
to disable the automatic page tracking.
export default {
head: {
__dangerouslyDisableSanitizers: ["script"],
script: [
{
defer: true,
"data-site": "YOUR_PROXIMA_ID",
"data-manual": true,
src: "https://buzz.proxima.so/script.js"
},
]
},
}