diff --git a/src/Widop/GoogleAnalytics/Client.php b/src/Widop/GoogleAnalytics/Client.php index fcb961c..3d32d70 100644 --- a/src/Widop/GoogleAnalytics/Client.php +++ b/src/Widop/GoogleAnalytics/Client.php @@ -177,7 +177,7 @@ public function getAccessToken() 'assertion' => $this->generateJsonWebToken(), ); - $response = json_decode($this->httpAdapter->postContent($this->url, $headers, $content)); + $response = json_decode($this->httpAdapter->postContent($this->url, $headers, http_build_query($content))); if (isset($response->error)) { throw GoogleAnalyticsException::invalidAccessToken($response->error);