Matomo (Piwik) team maintains a package and a repository for Debian. It lets you install Matomo in seconds using sudo apt-get install piwik. To get started and be able to run this command, read the Matomo Debian package blog post.