This plugin enables you can link your docusaurus site to bing clarity
- Add the plugin to your project.
yarn add docusaurus-plugin-clarity
or
npm install docusaurus-plugin-clarity --save
- Configure the plugin in
docusaurus.config.js
// docusaurus.config.js
module.exports = {
plugins: ["docusaurus-plugin-clarity"],
themeConfig: {
clarity: {
ID: "Your clarity ID", // Instructions below
}
}
};
- Choose your project, so that you're now on the dashboard
- Select settings, shown in the image below:
- Select
setup
- Open the dropdown
How to install clarity
- 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 theID
is located.
- You now have your ID!