SmartVPS - the complete multi-account hosting solution! Each individual account comes with free backups, addon domains, PHP-FPM with OPcache and server-side caching for lightning-fast sites. And all this at a great price!

Installing Matomo (formerly Piwik) [version 3.7.0]

You need to follow these steps to install Matomo:

1. Download the installation from the site of the vendor. It can be obtained from:

2. Once you have downloaded the archive that contains the installation, you need to upload it into your disk space.

You can either extract all the files from the downloaded archive and upload them, or you can upload the archive and use the web hosting Control Panel's File Manager to extract the package.

The best way to upload big files or multiple files is via FTP. If you are not sure how to upload the files, please visit this page.

If you are installing the application in your main domain, or in a subdomain, you may need to delete the default index.php file first. You can do this either via FTP, or through your web hosting Control Panel's File Manager.

3. You need to create a MySQL database for the application. You can do this by using your web hosting Control Panel's "MySQL Databases" section.

You also need to create a MySQL subuser for the application. You can create it from the "MySQL Databases" section as well. Be sure to grant all privileges to the MySQL subuser.

Detailed information on using the "MySQL Databases" section in the Control panel is available at this page.

4. You should add the following line to a PHP configuration file (php.ini) in your hosting account:


You can learn more on how to change various PHP settings in our Changing PHP Settings article.

5. You need to access with your browser the directory in which the extracted files are located. You should see the first page of the installation. Click the "Next" button.

6. On the next page, Matomo will check whether the hosting server meets the installation requirements. Click "Next". 

7. On the next step, you need to configure your database settings. You need to use the following values:

Database Server: localhost
Login: You need to enter the MySQL username you created at your web hosting Control Panel's MySQL section for your application.
Password: You need to enter the password you assigned to your MySQL user.
Database Name: You need to specify the MySQL database you created for your application.
table prefix: matomo_
Adapter: MySQLI

Database Setup

Click the "Next" button. The installation script will connect to the database and create the MySQL tables. After the tables are created, click the "Next" button.

8. On the next step, you will need to create a super user. The super user has the highest permissions. Choose your username and password and enter your e-mail address. Check the option "email me with major Matomo community updates".

Super User

Click the "Next" button.

9. On the next step, you need to enter a name for your site and your site's URL. You need to also select your site timezone.

Setup a Website

You can add more websites once the installation is complete.

Click the "Next" button.

10. On the next step, you will see the JavaScript tracking code. To record visitors, visits and page views in Matomo, you must add the Tracking code in all your pages. It is recommended that you use the standard Javascript Tracking code. It has to be included just before the </body> tag on your pages. Copy the code and paste it in the HTML code of your pages.

You can check out the Matomo Javascript Tracking documentation for the list of available functions (for example: Tracking Goals, Custom Variables, Ecommerce orders, products and abandoned carts, etc.).

Click the "Next" button to complete the installation.

Important notice: You should monitor the site of the software vendor for any security updates of your installed application.