How to Install Matomo Web Analytics on Ubuntu 18.04 LTS

Matomo formerly known as Piwik is a free web analytics application that can be used to tracks online visits to one or more websites and displays reports on these visits for analysis. In this tutorial, I am going to explain how to install Matomo on Ubuntu 18.04 LTS server.