[Video] How to Install Matomo Analytics using Self-Hosted
TRANSCRIPT: As you’ll be installing Matomo On-Premise on your own servers, we’d like to help you get set up as smoothly as possible with this installation overview.
Quick side note, If you have a WordPress website, there is now a super easy and more convenient way to install Matomo On-Premise which takes less than a minute and is hassle free from a technical setup. {Just head to matomo.org/wordpress-analytics for full details.}
And if you’re not using WordPress and don’t have your own servers but still want to use Matomo Analytics, we’ve got you covered too. Just head to matomo.org and click on the “Try it for free” button to use the Matomo Cloud solution and let us do the hosting for you.
Now to the installation, you’ll need an FTP programme, such as FileZilla, your FTP login details, a domain, directory or subdomain that you wish to install Matomo to.
Then check to make sure you meet the minimum PHP and MySQL version requirements to run Matomo.
You can read more about Matomo’s minimum requirements on the Matomo requirements page {https://matomo.org/docs/requirements/}
Check with your host if you’re unsure.
Next, let’s start by creating a MySQL database.
You’ll need to do this through your web host. The MySQL database stores all of your Matomo information, such as tracked raw data, aggregated reports, and more.
Here’s a standard hosting CPanel. You may be using Plesk or another control panel but the setup is similar.
Find the MySQL database icon and click on it. Give your database a name and create it.
Now you’ll need to add a user to your database. Find MySQL users and create a new user.
Make sure to give the newly created database user permission to access the database.
Next, Download Matomo! Unzip Matomo into a folder on your computer.
From here, open your FTP client, and input your host, username, and password to log in to your server.
Make sure you’re in binary mode. Locate the folder where you want to upload Matomo then drag and drop the files to your server.
Uploading via FTP will take a few minutes, so if you want to upload Matomo super-fast, you can use SSH access.
Open your web browser and browse to the folder or subdomain where you uploaded Matomo.
There you should see the welcome screen.
First what you’ll see is Matomo checking to make sure your server meets the minimum requirements.
If it doesn’t, get in touch with your web host and tell them what software is missing.
Hopefully by now all the boxes will be ticked telling you you’re good to go.
Click next.
Add your MySQL database information. The database server is normally localhost or 127.0.0.1.
But if that’s incorrect, you’ll be able to find out the database server from your web host.
Click next.
Matomo will then create the database tables.
Now your turn to create your super user.
You’ll need these details to log into Matomo for the first time.
When you’re logged in as the super user you can carry out administrative tasks like adding users, changing user permissions and enabling plugins.
No other type of user can carry out these tasks. Once you’ve created your super user, click next.
You’re almost there! Now, it’s time to set up your first website. You’ll be able to add more websites once the Matomo installation is complete. As many as you like, in fact!
Add the websites’ name, URL, and time zone.
Click next.
Finally, you’ll insert the Matomo tracking code into your website.
This snippet of javascript code should be copied and pasted in the line above where the head tag closes in your website’s source code.
If you’re using a content management system such as Drupal, Joomla, or Wix, you’ll be able to find a Matomo plugin or extension which will insert the tracking code for you without the need for you to go into your website’s source code.
Congratulations! You’ve successfully installed Matomo.
Log in to your account as the super user and watch your visitors arrive in real time.
For more documentation or help, check out the Matomo website {matomo.org/docs/installation}
If you want to enhance your Matomo experience don’t forget to add more free plugins or premium features, just go to the Matomo marketplace for these options {https://plugins.matomo.org/}
There you have it, Matomo is now yours to own and use! We’re delighted you managed to get to the end of this video and are on your way to gaining powerful insights while staying in full control of your own data.
As always, happy analytics!