← Main README · Configuration · Layout & Sidebars · Footer & Subfooter · Content Blocks · Content Lists · Typography · Image Processing · Analytics · Menus & Taxonomies · Migration
Felmdrav supports web analytics using Hugo’s built-in features and optional theme-specific integrations.
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.
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-
enabledEnables or disables Matomo tracking. -
urlBase URL of the Matomo instance. -
site_idNumeric site ID as defined in Matomo.
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 →