Unverified Commit 4129cdf6 authored by Stefan Giehl's avatar Stefan Giehl Committed by GitHub

Merge pull request #57 from matomo-org/classavailability

Ensure PiwikTracker and MatomoTracker are both available
parents 64248e18 0c73a806
......@@ -2050,3 +2050,12 @@ function Matomo_getUrlTrackGoal($idSite, $idGoal, $revenue = 0.0)
return $tracker->getUrlTrackGoal($idGoal, $revenue);
}
/**
* Ensure PiwikTracker class is available as well
*
* @deprecated
*/
if (!class_exists('\PiwikTracker')) {
include_once('./PiwikTracker.php');
}
\ No newline at end of file
......@@ -11,7 +11,9 @@
* @package MatomoTracker
*/
include_once('./MatomoTracker.php');
if (!class_exists('\MatomoTracker')) {
include_once('./MatomoTracker.php');
}
/**
* Helper function to quickly generate the URL to track a page view.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment