Skip to content

Add Plausible Analytics to your Thulite 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 Thulite 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>

Official Resources

More Analytics Guides