Matomo (formerly Piwik) is a free and open source analytics platform. Here i will go through the installation and setup of full server on a Centos 7 machine.
Simplest and quickest way is to run the installation script i have created here.
Please note that the script is not designed to handle all situations and produce errors etc. It is meant to be run on a fresh installation of Centos 7. It will install and configure all you need to run Matomo server.
This should take than 5 minutes to fully install the Matomo server.