Plausible Analytics
This guide will help you add Plausible Analytics to your Hyas site.
Set up Plausible
To follow this guide, you’ll need an existing Hyas site and a Plausible project.
Add parameters
Add the following parameters to config/_default/params.toml
and update with your plausibleDomain
:
# Add-ons[add_ons] plausibleDomain = "example.com" # "example.com" (default)
Add script
Add to layouts/partials/head/script-header.html
:
{{ $plausibleDomain := site.Params.add_ons.plausibleDomain -}}<script defer data-domain="{{ $plausibleDomain }}" src="https://plausible.io/js/script.js"></script>