Piwik\
Contains helper methods that can be used to get common Matomo (formerly Piwik) settings.
The class defines the following methods:
getPiwikUrl() — Returns the URL to this Matomo instance, eg.isSegmentationEnabled() — Returns true if segmentation is allowed for this user, false if otherwise.isUniqueVisitorsEnabled() — Returns true if unique visitors should be processed for the given period type.getPiwikUrl()Returns the URL to this Matomo instance, eg. http://demo.piwik.org/ or http://example.org/piwik/.
string|false —
return false if no value is configured and we are in PHP CLI modeisSegmentationEnabled()Returns true if segmentation is allowed for this user, false if otherwise.
bool value.isUniqueVisitorsEnabled()Returns true if unique visitors should be processed for the given period type.
Unique visitor processing is controlled by the [General] enable_processing_unique_visitors_...
INI config options. By default, unique visitors are processed only for day/week/month periods.
$periodLabel (string) —
"day", "week", "month", "year" or "range"bool value.