In this tutorial, we will explain the installation of Piwik on a Debian 9 VPS. Piwik is a free and open-source web analytics tool written by a team of international developers. It can run on a webserver with PHP and MySQL/MariaDB. It tracks online visits to one or more websites and displays reports on these visits for analysis. Among many things, it provides real time data updates, content tracking, goal conversion tracking, event tracking, analytics for e-commerce websites, site search analytics, geolocation and much more.