I have used plug-ins for traffic statistics before, but in recent years I have used third-party website statistics. I don’t know how matomo differs from Google statistics.
There is this article: How is Piwik different to Google Analytics and other web analytics tools? - Analytics Platform - Matomo
Otherwise, just do a google search for piwik vs ga
, there are many many posts about this.