Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-04-29 13:38 UTC
Current Environment Production
Build Time Apr 29, 13:38
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Page Location
Page Info
Layout default
Collection docs
Path _docs/analytics/index.md
URL /docs/analytics/
Date 2026-04-29
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Analytics

The Zer0-Mistakes theme supports multiple analytics platforms with privacy-first configurations.

Available Integrations

Platform Privacy Focus Free Tier
PostHog Yes (self-hostable) 1M events/mo
Google Analytics Limited 10M hits/mo
Google Tag Manager Varies Unlimited

Quick Comparison

  • Privacy: GDPR compliant, self-hostable
  • Features: Analytics, session recording, feature flags
  • Best for: Privacy-conscious sites

Google Analytics

  • Privacy: Data sent to Google
  • Features: Comprehensive analytics
  • Best for: Marketing insights

Google Tag Manager

  • Privacy: Depends on tags used
  • Features: Centralized tag management
  • Best for: Marketing teams

Configuration Overview

PostHog

# _config.yml
posthog:
  enabled: true
  api_key: 'phc_YOUR_KEY'
  api_host: 'https://us.i.posthog.com'

Google Analytics

# _config.yml
google_analytics:
  tracking_id: 'G-XXXXXXXXXX'

Google Tag Manager

# _config.yml
google_tag_manager:
  container_id: 'GTM-XXXXXXX'

Environment-Aware Loading

All analytics only load in production:

{% if jekyll.environment == 'production' %}
  {% include analytics/posthog.html %}
{% endif %}

Privacy Compliance

See Cookie Consent for GDPR/CCPA compliant consent management.

See also

  • [[Features]]
  • [[Customization]]
  • [[SEO]]
  • [[Deployment]]