protected function getBaseUrl()
{
if (empty(self::$URL)) {
throw new Exception('You must first set the Piwik Tracker URL by calling
PiwikTracker::$URL = \'http://your-website.org/piwik/\';');
}
if (strpos(self::$URL, '/piwik.php') === false && strpos(self::$URL, '/proxy-piwik.php') === false) {
self::$URL .= '/piwik.php';
}
return self::$URL;
}
/** * Returns the base URL for the piwik server. */ protected function getBaseUrl() { if (!empty($this->baseApiUrl)) { return $this->baseApiUrl; } return parent::getBaseUrl(); }