Because `$URL` is a constant and not a property of the class: https://github.com/piwik/piwik-php-tracker/blob/1.0.0/PiwikTracker.php#L32 ``` $tracker1 = new \PiwikTracker(1, 'http://demo.piwik.org/piwik.php'); $tracker2 = new \PiwikTracker(1, 'http://apache.piwik/piwik.php'); ``` Both tracker instances will use `http://apache.piwik/piwik.php` as URL. Use case see https://github.com/piwik/piwik/issues/4589 where up to 3 trackers can be configured and we need to send the same data to different trackers.
Because
$URLis a constant and not a property of the class: https://github.com/piwik/piwik-php-tracker/blob/1.0.0/PiwikTracker.php#L32Both tracker instances will use
http://apache.piwik/piwik.phpas URL.Use case see matomo-org/matomo#4589 where up to 3 trackers can be configured and we need to send the same data to different trackers.