I set up Matomo (formerly Piwik) to track stats on my websites.
WordPress has a plugin for this. However, the default Matomo mode (Self-hosted HTTP API) will not work. Using the PHP API mode and then entering the path to your Matomo app does work.
kjodle since this is a tutorial I have a few questions: