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!
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.
- Check Environment: Ensure your site is deployed or running in production mode (
HUGO_ENV=production hugo server). - Verify ID: Double-check that your tracking ID matches the one in your analytics dashboard.
- Ad Blockers: If you don't see data, check if your ad blocker is preventing the script from loading.
Was this page helpful?
SEO Optimization & Social Sharing
Maximize your HugoBlox site's visibility. Configure SEO metadata, Open Graph tags, sitemaps, and optimize for search engines and LLMs.
Site Search Configuration (Pagefind)
Enable and configure fast, privacy-first search for your HugoBlox site using Pagefind. Setup index generation for GitHub Pages and Netlify.
From the makers of
© 2026 Lore Labs.