Skip to content

idlatest/nuxt-microsoft-clarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Nuxt Microsoft Clarity

A NuxtJS plugin for injecting the Microsoft Clarity script tags into the head section of the HTMl page

Table of Contents

Requirements

  • npm
  • NuxtJS
  • NodeJS

Install

  # npm
  $ npm i nuxt-microsoft-clarity --save

  # yarn
  $ yarn add nuxt-microsoft-clarity

Getting Started

Add 'nuxt-microsoft-clarity' to the modules section of your nuxt.config.js file.

Method 1: Inline configuration entry

{
  modules: [
    'nuxt-microsoft-clarity', {
      // Options
    }
  ],
}

Method 2: External configuration entry

Add msc section in nuxt.config.js to set the module options:

{
  modules: [
    'nuxt-microsoft-clarity'
  ],
  microsoftClarity: {
    // Options
  },
}

Method 3: Runtime Config

{
  modules: [
    'nuxt-microsoft-clarity'
  ],
  // Use as fallback if no runtime config is provided
  microsoftClarity: {
    // Options
  },
  publicRuntimeConfig: {
    microsoftClarity: {
      // Options
    }
  }
}

Options

The following options can be configured in the module's configuration entry in your nuxt.config.js file

Microsoft Clarity ID - id

  • Required
  • Default: null

Usage

Starts tracking automatically if everything goes well. Note: It takes upto 2 hours before data start showing up on Microsoft Clarity dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published