Skip to content

A Hugo module to integrate Microsoft Clarity with your Hinode site (work in progress)

License

Notifications You must be signed in to change notification settings

gethinode/mod-clarity

Repository files navigation

Hinode Module - Microsoft Clarity

A Hugo module to integrate Microsoft Clarity with your Hinode site

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to enable Microsoft Clarity for a Hinode site. Visit the Hinode documentation site for installation instructions.

Contributing

This module uses semantic-release to automate the release of new versions. The package uses husky and commitlint to ensure commit messages adhere to the Conventional Commits 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 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.force false Trigger to force include the analytics scripts, bypassing other settings. Use this setting for debugging and testing only.

About

A Hugo module to integrate Microsoft Clarity with your Hinode site (work in progress)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •