![]() The Matomo archive script will run every hour (at 5 minutes past). Let’s create a new crontab with the text editor nano: nano /etc/cron.d/matomo-archiveĪnd then add the lines: * * * * www-data /usr/bin/php /path/to/matomo/console core:archive -url= > /home/example/matomo-archive.log You will also need SSH access to your server in order to set it up. The crontab requires php-cli or php-cgi installed. Linux/Unix: How to Set up a Crontab to Automatically Archive the Reports.Ī crontab is a time-based scheduling service in a Unix-like server. If you don’t have access to the server, you can also setup a web cron. There are instructions below for Linux/Unix systems using a crontab, but also instructions for Windows users with the Windows Task Scheduler, and for tools such as CPanel. To automatically trigger the Matomo archives, you can set up a script that will execute every hour. If you are on the Matomo Cloud, this is automatically taken care of for you as well. If you are using Matomo for WordPress, you don’t need to do this as it utilises the WP Cron. The best way to avoid these waiting times is to set up a cron job on your server so that your data is automatically processed every hour. If your website has more than a few hundreds visits per day (bravo!), waiting for Matomo to process your data may take a few minutes. Making sense of the core:archive output.More Information About Matomo Archiving.Disable browser triggers for Matomo archiving and limit Matomo reports to updating every hour. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |