Going live

Analytics & Traffic Tracking

Track website traffic and visitor stats. Configure privacy-friendly tools like Pirsch and Fathom, or use Google Analytics and Tag Manager.

Understand your audience and grow your site with integrated analytics. HugoBlox supports privacy-focused options like Pirsch and Fathom, as well as industry standards like Google Analytics.

Providers

Pirsch

Recommended. Privacy-first, lightweight, and best value. No cookie banner required. Get Pirsch

Fathom

Simple, privacy-focused analytics. No cookie banner required. Get Fathom

Plausible

Open source, privacy-friendly analytics. No cookie banner required. Get Plausible

Google Analytics

The industry standard. Free and comprehensive.

Google Tag Manager

Manage all your tags (analytics, remarketing) in one place.

Microsoft Clarity

Heatmaps and session recording.

Baidu Tongji

Analytics for the Chinese market.

Configuration

Visual Editor Available

Use Ownable CMS to configure analytics visually - just enter your tracking IDs in the UI!

Install Ownable CMS →

Add your tracking ID to config/_default/params.yaml:

hugoblox:
  analytics:
    pirsch:
      site_id: 'YOUR_SITE_ID'
hugoblox:
  analytics:
    fathom:
      site_id: 'YOUR_SITE_ID'
hugoblox:
  analytics:
    plausible:
      domain: 'yoursite.com'
hugoblox:
  analytics:
    google:
      measurement_id: 'G-XXXXXXXXXX'
hugoblox:
  analytics:
    google_tag_manager:
      container_id: 'GTM-XXXXXXX'
hugoblox:
  analytics:
    clarity:
      project_id: 'YOUR_PROJECT_ID'
hugoblox:
  analytics:
    baidu: 'YOUR_TONGJI_ID'

Microsoft Clarity:

hugoblox:
  analytics:
    clarity:
      project_id: 'YOUR_PROJECT_ID'

PostHog / Umami / Others: For other providers, use the Custom Hooks feature to inject their tracking script into the <head> or <body>.

Custom Analytics

Need to use a different provider? You can add any custom tracking script using HugoBlox Hooks.

Troubleshooting

Production Only

Analytics usually only run in the production environment. They are disabled by default in development (hugo server) to prevent polluting your data with test visits.

  1. Check Environment: Ensure your site is deployed or running in production mode (HUGO_ENV=production hugo server).
  2. Verify ID: Double-check that your tracking ID matches the one in your analytics dashboard.
  3. Ad Blockers: If you don't see data, check if your ad blocker is preventing the script from loading.

Was this page helpful?

From the makers of

© 2026 Lore Labs.

On this page