nuxtjs-microsoft-clarity

NuxtJS plugin for injecting Microsoft clarity script tag into the page
38,780 6
Install
npm install nuxtjs-microsoft-clarity
Latest Version:1.1.5
License:MIT
Last Updated:Nov 5, 2021
Links: GitHub  ·  npm
Maintainer: doron2402

NuxtJS 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 nuxtjs-microsoft-clarity --save

  # yarn
  $ yarn add nuxtjs-microsoft-clarity

Getting Started

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

Method 1: Inline configuration entry

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

Method 2: External configuration entry

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

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

Method 3: Runtime Config

{
  modules: [
    'nuxtjs-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 maximum duration of 2 hours before data start showing up on Microsoft Clarity dashboard

Related Packages

nuxt-helper-json

Definitions of Nuxt components

30,972
@lg2/nuxt3-plugin-link-resolver

link resolver plugin fro nuxt3

3,544 0
vue-3-breadcrumbs

Breadcrumbs logic and component for vue 3

21,475 8
nuxt-unleash

Nuxt.js module to use Unleash toggle feature services

1,442 21
vue-link

One component to link them all!

1,333 62

Version History

Version Released License
1.1.5 MIT
1.1.1 MIT
1.1.0 MIT
1.0.1 MIT
1.0.0 MIT