Matomo hosting: privacy-friendly analytics on your own web hosting
Published on November 24, 2026 10 min read
Matomo is the open-source alternative to Google Analytics. Install it on your hosting in Plesk or as a WordPress plugin and track visitors without cookies.
Matomo is open-source web analytics software and a widely used alternative to Google Analytics. You install it on your own web hosting, so the data about your visitors stays in your own database instead of going to Google. On LJPc hosting you can run Matomo in two ways: as a separate installation on a subdomain, such as stats.yourdomain.com, or as a plugin inside your WordPress site.
Matomo 6 has been the current version since 23 November 2026. It needs PHP 8.1 or later and MariaDB 10.6 or MySQL 8.0. Our servers meet that: in Plesk you choose PHP 8.2 or later, and the databases run on MariaDB 11.4 or newer. If all you want is a visitor count, you don't need Matomo at all. Plesk already builds a daily report from your website's log files, see how to view website statistics in Plesk.
What is Matomo?
Matomo shows what visitors do on your website: how many visits you get, which pages they view, which search engine, site or campaign sent them, and whether they complete a goal, such as sending your contact form. The software used to be called Piwik.
The version you install yourself is called Matomo On-Premise. It is free to download and licensed under the GPL v3. Matomo also sells Matomo Cloud, where Matomo hosts the software for you, and some of the extra plugins in the Matomo marketplace are paid.
Matomo vs Google Analytics
Both collect data with a small piece of JavaScript in your pages, the tracking code. On every page view it sends data to the server that keeps your statistics. Both report visits, page views, referring sites, campaigns and goals. Where they differ is where that data ends up and who keeps the software up to date.
| Google Analytics 4 | Matomo on your own hosting | |
|---|---|---|
| Where the data is stored | At Google | In a database in your own hosting package |
| Cookies | _ga and _ga_<container-id> by default, valid for two years | On by default, one checkbox turns them off for all your websites |
| Cost | Free | Free software; the database counts towards your package's storage |
| Updates | Handled by Google | Done by you, with a button in Matomo or as a WordPress update |
Google lists its cookies in Google Analytics cookie usage on websites. If you are moving from Google Analytics and want to keep your history, the free Google Analytics Importer plugin brings your old reports into Matomo. It needs archiving through a scheduled task, which you set up further down this page.
Which option suits your website?
For a rough picture of your traffic, the statistics in Plesk are enough. They come from the server's log files, so you add nothing to your website. They don't show goals or campaigns, and some of the tools include bots in their totals.
If your site runs on WordPress, the Matomo Analytics plugin is the quickest route. It takes a few minutes to install and stores everything in your site's database. Matomo recommends the plugin for sites with up to about 50,000 page views a month.
A separate installation on a subdomain takes more work to set up. It can track all your websites, including sites that don't run on WordPress, and keeps your statistics apart from your website. Matomo recommends this route for busy sites and for anyone who manages many websites.
How to install Matomo on a subdomain in Plesk
You open Plesk from the customer portal, see open Plesk from the customer portal.
- Create a subdomain, for example stats.yourdomain.com, and keep the suggested Document root
stats.yourdomain.com. The steps are in create a subdomain. Our system requests a free Let's Encrypt certificate for it as soon as the subdomain points to our server. - Check which PHP version the subdomain uses and pick the newest one available. Matomo recommends the latest PHP 8 release. See change the PHP version in Plesk.
- Create a database with its own database user and select your subdomain under Related site, as described in create a database in Plesk. Write down the full database name including the prefix, the user name and the password.
- Download the latest version as a zip file from the Matomo download page. In Plesk, open Files and go to the
stats.yourdomain.comfolder. Upload the zip file with Upload File and choose Extract Files in the menu of its row. You now have amatomofolder. Delete the zip file afterwards. More on uploading and extracting in the Plesk File Manager guide. - Set the subdomain's Document root to
stats.yourdomain.com/matomo: open the Hosting & DNS tab of the subdomain, click Hosting, change the field and click Save. See also change the document root in Plesk. Do this before you start the installer, so Matomo runs at https://stats.yourdomain.com from the start. - Open https://stats.yourdomain.com in your browser. The Matomo installer starts with a check of your server.
- For the database, enter
localhostas the server, plus the database name, user name and password from step 3. Matomo then creates its tables. - Create the superuser, the admin account of your Matomo, with a strong password. By default Matomo signs this user up for emails about new versions and security updates; leave that on.
- Enter the name and address of your first website. Matomo then shows the tracking code.
Add the tracking code to your website
Matomo recommends placing the tracking code right before the closing </head> tag, in the template every page uses. On WordPress, the Connect Matomo plugin does this for you. You connect it with the address of your Matomo and an auth token from Matomo. The code then appears on every page and you see your statistics in the WordPress dashboard too.
To track a second website, add it in Matomo. Every website gets its own tracking code, and it may be hosted somewhere else.
Fast reports: set up archiving with a scheduled task
Matomo turns raw visit data into reports. Without a scheduled task this happens when someone opens a report, which makes Matomo slow. Once you get more than a few hundred visits a day, Matomo recommends a task that runs every hour. This is how you set it up in Plesk:
- In Plesk, open Scheduled Tasks on the Dashboard tab of your domain and click Add Task. Scheduled tasks are explained in set up cron jobs in Plesk.
- Under Task type, choose Run a PHP script. Enter
stats.yourdomain.com/matomo/consoleas the Script path and this under with arguments:core:archive --matomo-domain=https://stats.yourdomain.com - Under Use PHP version, choose the same version as your subdomain.
- Under Run, choose Cron style and enter
5 * * * *. The task then runs every hour, at five past. - Under Notify, choose Errors only with your own email address and click Run Now. See details shows the websites Matomo processed and a summary without errors at the end. Then click OK.
- In Matomo, go to Administration > System > General settings, set Archive reports when viewed from the browser to No and save. Your reports now open quickly, because they are ready in advance.
Matomo explains archiving in its own auto-archiving guide.
Matomo as a WordPress plugin
The plugin is called Matomo Analytics and is made by Matomo. Install it from Plugins in your WordPress dashboard, or in Plesk with WP Toolkit (see install WordPress in Plesk). Then open Matomo Analytics in the WordPress menu and click Activate tracking on the Get started page. From then on the plugin tracks your visitors, with no subdomain or separate database needed.
The plugin builds its reports through WP-Cron, the WordPress scheduler, usually every hour. WP-Cron only starts when someone visits your site, so on a quiet site your reports fall behind. Let a real scheduled task start WP-Cron instead, for example with the Take over wp-cron.php switch in WP Toolkit. The steps are in set up cron jobs in Plesk.
Every page view sends an extra request to your server for the statistics. With more than about 50,000 page views a month, or many websites to manage, Matomo recommends a separate installation, such as on a subdomain, with Connect Matomo in WordPress. For Matomo 6 the plugin needs the same PHP and database versions as a separate installation. If your site runs an older PHP version, the plugin won't update to Matomo 6.
Privacy-friendly Matomo settings
In your own Matomo, you find these settings as superuser under Administration > Privacy:
- Under Anonymize data, tick Force tracking without cookies and Matomo tracks all your websites without cookies. In the WordPress plugin, tick Disable cookies under Matomo Analytics > Settings.
- Anonymize Visitors' IP addresses is on by default and removes the last 2 bytes of every IP address before Matomo stores it. You can also mask 3 bytes, or the whole address.
- Regularly delete old raw data removes visit data older than the number of days you choose. Your reports stay as long as archiving runs, and your database stays smaller. Matomo mentions keeping detailed data for about six months. Deleted data can't be recovered, so only turn this on once archiving works.
- Under Users opt-out, copy the HTML snippet for your privacy policy, so visitors can opt out of tracking. In WordPress, use the
[matomo_opt_out]shortcode.
Do you need a cookie banner with Matomo?
That depends on the rules in the country your visitors are in, so check the guidance of your own data protection authority. For websites aimed at the Netherlands, the Dutch Data Protection Authority (Autoriteit Persoonsgegevens) says in its cookie banner guidelines (updated November 2026) that you don't need consent or a cookie banner if you only use functional or limited analytics cookies. You do have to tell visitors about it and give them a clear way to object, for example with a button on your privacy page. Analytics with more than a minor privacy impact needs consent first.
The Dutch authority applies the same rules to tracking techniques other than cookies, so cookieless tracking is covered too. Whether your setup counts as limited analytics is for you to assess against that guidance. Either way, mention Matomo in your privacy policy and add the Matomo opt-out.
Storage, backups and updates
Matomo keeps everything in a database, and databases count towards the storage of your hosting package. You can see how much space you use in the customer portal, see check your storage usage. The storage of your hosting package is a soft limit. If you go over it, your website and email keep working and we send you an email with the breakdown across website, email and databases. You then have 7 days to free up space or choose a bigger package. After that we charge 3 euros per started GB per month above the limit, excluding VAT, until you are back under the limit.
We back up your website, subdomains, databases and email every night, so your Matomo is included. What the backup contains and how to get something back is in hosting backups and restores.
Keep Matomo up to date, because it sits at a public address, like your website. As superuser you see a new version in the Check for Updates box at the top right of Administration. Export your database first, then click Update automatically. You update the WordPress plugin like any other plugin, see update WordPress safely. If you get stuck, create a support ticket.
Frequently asked questions
Is Matomo free?
Matomo On-Premise, the version you install yourself, is free to download and licensed under the GPL v3. The Matomo Analytics plugin for WordPress is free too. Matomo Cloud, where Matomo hosts the software for you, and some extra plugins are paid. On LJPc hosting, the Matomo database counts towards your package storage.
Is Matomo GDPR compliant?
That depends on how you set it up and use it. On your own hosting the data stays with you, and you can track without cookies, mask IP addresses and delete old visit data automatically. Whether that means you need no consent depends on the guidance of the data protection authority in your visitors' country. Either way, mention Matomo in your privacy policy and add an opt-out.
Can I import my Google Analytics data into Matomo?
Yes. Matomo offers the free Google Analytics Importer plugin, for a separate installation and for the WordPress plugin. It brings your old reports into Matomo, so you can compare new numbers with previous years. The plugin needs archiving through a scheduled task.
Can one Matomo installation track several websites?
Yes. In a separate installation, for example on a subdomain, you add more websites and each one gets its own tracking code. Those sites may be hosted elsewhere. The WordPress plugin tracks the WordPress site it is installed on.
Why do Matomo's numbers differ from the website statistics in Plesk?
Plesk counts the requests in the server's log files, including bots and visitors who block scripts. Matomo counts visitors whose browser runs the tracking code and keeps bots out of the reports as far as it can. Matomo's numbers are therefore usually lower.
Do I have to update Matomo myself?
Yes. You update a separate installation with the Update automatically button under Administration, after exporting your database. Matomo emails the superuser about new versions if you left that on during installation. You update the WordPress plugin like any other plugin. We also back up your hosting every night, databases included.