Integrating Matomo in Hugo


I installed Matomo on my server and wish to integrate it in my blog. What is the best way to do it?
I saw hugo-component-matomo but is it still relevant or is there any other way?

Thank you.

The simplest is to just paste in the JavaScript widget that Matomo gives you in to your baseof.html template.

1 Like