Skip to content

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

Use updated auth in Google data

Uku Taht470216f2d8a3
diff --git a/lib/plausible/google/api.ex b/lib/plausible/google/api.ex
index 7cc350a53f..9420fa56a5 100644
--- a/lib/plausible/google/api.ex
+++ b/lib/plausible/google/api.ex
@@ -70,7 +70,7 @@ defmodule Plausible.Google.Api do
dimensionFilterGroups: filter_groups || %{}
}),
"Content-Type": "application/json",
- Authorization: "Bearer #{site.google_auth.access_token}"
+ Authorization: "Bearer #{auth.access_token}"
)
case res.status_code do