Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.75 KB

File metadata and controls

74 lines (51 loc) · 1.75 KB

Main README · Configuration · Layout & Sidebars · Footer & Subfooter · Content Blocks · Content Lists · Typography · Image Processing · Analytics · Menus & Taxonomies · Migration

Analytics

Felmdrav supports web analytics using Hugo’s built-in features and optional theme-specific integrations.

Google Analytics

Google Analytics is handled via Hugo’s internal templates. To enable it, set the googleAnalytics option at the top level of your config.toml (not inside [params]).

Example:

googleAnalytics = "UA-123-45"

Felmdrav does not modify or wrap Hugo’s Google Analytics integration. Behavior is identical to the standard Hugo implementation.

Matomo

Felmdrav includes built-in support for Matomo analytics.

Matomo settings are configured under the following section:

[params.analytics.matomo]
enabled = false
url = "https://analytics.example.com"
site_id = 0
  • enabled Enables or disables Matomo tracking.

  • url Base URL of the Matomo instance.

  • site_id Numeric site ID as defined in Matomo.

Custom Analytics Snippets

If you require a custom Matomo setup or want to use a different analytics solution, you can override the analytics partials provided by the theme.

Custom snippets can be added by placing your own files in:

layouts/partials/analytics/

Hugo’s lookup order ensures that your custom partials are used instead of the theme defaults.


← Previous: Image Processing Next: Menus & Taxonomies