Beam is a strong fit for Hugo publishers and docs sites: one deferred script, no cookies, and decision-ready analytics without shipping a heavy client-side bundle.
No credit card required and setup in minutes
Replace YOUR_SITE_ID with your Beam site ID from the dashboard.
<!-- layouts/partials/beam-analytics.html -->
<script
defer
src="https://beam.keylightdigital.dev/js/beam.js"
data-site-id="YOUR_SITE_ID">
</script>
<!-- layouts/_default/baseof.html -->
<!doctype html>
<html lang="{{ site.Language.Lang | default "en" }}">
<head>
{{ partial "beam-analytics.html" . }}
</head>
<body>
{{ block "main" . }}{{ end }}
</body>
</html>
Using a dedicated partial keeps tracking in one file across homepage, section lists, and single pages. Need your ID first? Create a site at /dashboard/sites/new.
<!-- themes/your-theme/layouts/partials/head/custom.html -->
<script
defer
src="https://beam.keylightdigital.dev/js/beam.js"
data-site-id="YOUR_SITE_ID">
</script>
Many Hugo themes expose a custom head partial. This is the lowest-friction install when you do not want to edit base templates.
Use this checklist after publish so you know tracking is actually live in production.
Beam keeps Hugo pages fast with a tiny deferred script instead of a client-heavy analytics bundle.
Beam does not set cookies or store personal identifiers, so privacy compliance stays simple.
Go beyond passive counters with top pages, channels, referrers, goals, and plain-English insights.
Install via shared partials or theme head includes without adding build plugins or JS frameworks.
Start free, validate your first pageview, and then scale when traffic grows.