https://github.com/gethinode/mod-clarity
A Hugo module to integrate Microsoft Clarity with your Hinode site (work in progress)
https://github.com/gethinode/mod-clarity
Last synced: 3 months ago
JSON representation
A Hugo module to integrate Microsoft Clarity with your Hinode site (work in progress)
- Host: GitHub
- URL: https://github.com/gethinode/mod-clarity
- Owner: gethinode
- License: mit
- Created: 2025-01-04T07:23:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-28T03:03:24.000Z (3 months ago)
- Last Synced: 2025-01-28T04:19:05.733Z (3 months ago)
- Language: HTML
- Size: 446 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hinode Module - Microsoft Clarity
A Hugo module to integrate Microsoft Clarity with your Hinode site
## About

Hinode is a clean blog theme for [Hugo][hugo], an open-source static site generator. Hinode is available as a [template][repository_template], and a [main theme][repository]. This repository maintains a Hugo module to enable [Microsoft Clarity][clarity] for a Hinode site. Visit the Hinode documentation site for [installation instructions][hinode_docs].
## Contributing
This module uses [semantic-release][semantic-release] to automate the release of new versions. The package uses `husky` and `commitlint` to ensure commit messages adhere to the [Conventional Commits][conventionalcommits] specification. You can run `npx git-cz` from the terminal to help prepare the commit message.
## Configuration
> [!WARNING]
> This module assumes you have properly configured a Cookie Consent Manager. The Clarity script is assigned to the category `analytics`. Cookie consent is automatically given when this script is loaded. Do not load this script without explicit consent from the user. See the [Hinode docs][hinode_cookie_consent] for more details.This module supports the following parameters (see the section `params.modules` in `config.toml`):
| Setting | Default | Description |
|---------------------------|---------|-------------|
| clarity.id | | Tracking code of Microsoft Clarity (see [installation instructions][clarity_code])
| clarity.force | false | Trigger to force include the analytics scripts, bypassing other settings. Use this setting for debugging and testing only. |[hugo]: https://gohugo.io
[hinode_docs]: https://gethinode.com
[hinode_cookie_consent]: https://gethinode.com/docs/configuration/cookie-consent/
[clarity]: https://clarity.microsoft.com
[clarity_code]: https://learn.microsoft.com/en-us/clarity/setup-and-installation/clarity-setup#install-manually
[repository]: https://github.com/gethinode/hinode.git
[repository_template]: https://github.com/gethinode/template.git
[conventionalcommits]: https://www.conventionalcommits.org
[husky]: https://typicode.github.io/husky/
[semantic-release]: https://semantic-release.gitbook.io/