url property
String
url
The url of the Matomo endpoint.
E.g.: https://example.com/matomo.php
Should not be confused with the url
tracking parameter
which is constructed by combining contentBase with a path
(e.g. in trackPageViewWithName).
You can use setUrl to change this value after initialization.
Implementation
String get url {
if (_url case final url?) {
return url;
}
throw const UninitializedMatomoInstanceException();
}