diff --git a/MatomoTracker.php b/MatomoTracker.php index 0e4f41b..d3cb209 100644 --- a/MatomoTracker.php +++ b/MatomoTracker.php @@ -2129,6 +2129,10 @@ protected function sendRequest(string $url, string $method = 'GET', $data = null $response = file_get_contents($url, 0, $ctx); $content = $response; + if (function_exists('http_get_last_response_headers')) { + $http_response_header = http_get_last_response_headers(); + } + $this->parseIncomingCookies($http_response_header); }