flask-matomo2 is a library which lets you track the requests of your Flask website using Matomo (Piwik).
flask-matomo2
Track requests to your Flask website with Matomo