docusaurus-plugin-clarity

2.1.0 • Public • Published

docusaurus-plugin-clarity

This plugin enables you can link your docusaurus site to bing clarity

Install the plugin

  1. Add the plugin to your project.
yarn add docusaurus-plugin-clarity

or

npm install docusaurus-plugin-clarity --save
  1. Configure the plugin in docusaurus.config.js
// docusaurus.config.js
module.exports = {
  plugins: ["docusaurus-plugin-clarity"],
  themeConfig: {
    clarity: {
      ID: "Your clarity ID", // Instructions below
    }
  }
};

How to find your clarity ID

  1. Open https://clarity.microsoft.com/

  1. Choose your project, so that you're now on the dashboard

  1. Select settings, shown in the image below:

settings


  1. Select setup

settings


  1. Open the dropdown How to install clarity

  1. Under the Clarity tracking code heading, there will be a piece of code, if you look at the screenshot below, the part underlined in green will be where the ID is located.

settings


  1. You now have your ID!

Readme

Keywords

Package Sidebar

Install

npm i docusaurus-plugin-clarity

Weekly Downloads

392

Version

2.1.0

License

MIT

Unpacked Size

3 kB

Total Files

3

Last publish

Collaborators

  • pateln123