A middleware for Piwik