Skip to content

Add Plausible Analytics to your Hyas Site

Plausible Analytics ia an easy to use and privacy-friendly Google Analytics alternative.

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
plausibleDomain = "" # "" (default)

Add script

Add to layouts/partials/head/script-header.html:

{{ $plausibleDomain := site.Params.add_ons.plausibleDomain -}}
<script defer data-domain="{{ $plausibleDomain }}" src=""></script>

Official Resources

More Analytics Guides