A NuxtJS plugin for injecting the Microsoft Clarity script tags into the head section of the HTMl page
- npm
- NuxtJS
- NodeJS
# npm
$ npm i nuxtjs-microsoft-clarity --save
# yarn
$ yarn add nuxtjs-microsoft-clarity
Add 'nuxtjs-microsoft-clarity' to the modules section of your nuxt.config.js file.
{
modules: [
'nuxtjs-microsoft-clarity', {
// Options
}
],
}Add microsoftClarity section in nuxt.config.js to set the module options:
{
modules: [
'nuxtjs-microsoft-clarity'
],
microsoftClarity: {
// Options
},
}{
modules: [
'nuxtjs-microsoft-clarity'
],
// Use as fallback if no runtime config is provided
microsoftClarity: {
// Options
},
publicRuntimeConfig: {
microsoftClarity: {
// Options
}
}
}The following options can be configured in the module's configuration entry in your nuxt.config.js file
- Required
- Default:
null
Starts tracking automatically if everything goes well. Note: It takes maximum duration of 2 hours before data start showing up on Microsoft Clarity dashboard