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