diff --git a/MatomoTracker.php b/MatomoTracker.php index e3efc8f..fe3a0b0 100644 --- a/MatomoTracker.php +++ b/MatomoTracker.php @@ -1620,7 +1620,7 @@ protected function sendRequest($url, $method = 'GET', $data = null, $force = fal $forcePostUrlEncoded = false; if (!$this->doBulkRequests) { - if (strtoupper($this->requestMethod) === 'POST') { + if (!empty($this->requestMethod) && strtoupper($this->requestMethod) === 'POST') { // POST ALL parameters and have no GET parameters $urlParts = explode('?', $url);