Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Debug API call

Uku Taht5dc024a5cfd3
diff --git a/lib/plausible/google/api.ex b/lib/plausible/google/api.ex
index b0c009fd1c..a3e120a59e 100644
--- a/lib/plausible/google/api.ex
+++ b/lib/plausible/google/api.ex
@@ -344,6 +344,8 @@ defmodule Plausible.Google.Api do
pageToken: page_token
}
+ Logger.debug(Jason.encode!(%{reportRequests: [report]}))
+
res =
HTTPoison.post!(
"https://analyticsreporting.googleapis.com/v4/reports:batchGet",