ActionLab Analytics for Hugo

Add privacy-first, AI-powered analytics to your Hugo site in under 60 seconds. No cookies, no consent banners, no complex setup.

Installation Code

Hugo
{{/* layouts/partials/head.html */}}
<script
  src="https://cdn.actionlabanalytics.com/actionlab.js"
  data-site="{{ .Site.Params.actionlabSiteId }}"
  defer
></script>

Step-by-Step Setup

  1. 1

    Add the script to your layouts/partials/head.html or baseof.html template.

  2. 2

    Add your site ID to config.toml: [params] actionlabSiteId = "YOUR_SITE_ID".

  3. 3

    Build and deploy your Hugo site.

  4. 4

    Works with all Hugo themes.

Why Use ActionLab with Hugo

  • Configurable via Hugo site params
  • Works with all Hugo themes
  • Static site compatible — no server needed
  • Matches Hugo's performance-first philosophy

Frequently Asked Questions

Does ActionLab work with Hugo static sites?

Yes. ActionLab is a client-side script that works with any static site generator including Hugo. No server-side processing is needed.