被這個問題給煩到了,之前按照官方文檔裏面添加計劃任務,但沒有成功,後台還是會提示 Last Successful Archiving Completion ,也就是沒有設置存檔。

For optimal performance and a speedy Matomo, it is highly recommended to set up a crontab to automatically archive your reports, and to disable browser triggering in the Matomo settings. Learn more.
然後找了一圈發現問題是我們服務器用的 shell 腳本,所以編寫的方式不對
這裏貼一下我們自己用的計劃任務
/www/server/php/72/bin/php /www/wwwroot/tongji.feibisi.com/console core:archive --url=https://tongji.feibisi.com/ > /www/wwwroot/default/matomo-archive.log
也就是 PHP 路徑+ matomo 安裝路徑 + 網絡地址 + 存檔地址
保存後設置計劃任務執行為一個小時一次。