I upgraded Matomo to the recent version today. After the ugrade, I get the following PHP errors:
PHP Fatal error: Class 'MatomoTracker' not found in ****/PiwikTracker.php on line 50
I am using the following code to track pageviews:
<?php
// -- Matomo Tracking API init --
require_once (__DIR__ . '***PiwikTracker.php');
PiwikTracker::$URL = ***;
$tracker = new PiwikTracker(***);
$tracker->setTokenAuth(***);
$tracker->setIp(***);
$tracker->doTrackPageView(***);
?>
Before the upgrade it was working fine. I downloaded the latest PiwikTracker.php as mentioned in https://matomo.org/docs/tracking-api/, but then also it did not work. Any help will be much appreciated.