Microsoft Clarity Module

This module offers support for Microsoft Clarity Analytics.

Module
github.com/hugomods/microsoft-clarity
GitHub Stars Used By Used By Used By Used By

Installation

1.Import the Module

hugo.yaml

1module:
2  imports:
3  - path: github.com/hugomods/microsoft-clarity

hugo.toml

1[module]
2  [[module.imports]]
3    path = 'github.com/hugomods/microsoft-clarity'

hugo.json

1{
2   "module": {
3      "imports": [
4         {
5            "path": "github.com/hugomods/microsoft-clarity"
6         }
7      ]
8   }
9}

2.Import the Partial

Please skip this step if your theme supports HugoPress, such as HB Framework themes.

1<head>
2  {{ partialCached "microsoft-clarity/index" . }}
3</head>

Site Configuration

ParameterTypeDefaultDescription
microsoft_clarity.idstring-The measurement ID.

hugo.yaml

1microsoft_clarity:
2  id: XXXXXXXXXX

hugo.toml

1[microsoft_clarity]
2  id = 'XXXXXXXXXX'

hugo.json

1{
2   "microsoft_clarity": {
3      "id": "XXXXXXXXXX"
4   }
5}