From 5d479a6c8fb2f8e1fca659493cef1df66767536d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 9 Nov 2021 23:23:47 +0100 Subject: [PATCH] root: set utm_source Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index b527919e1..dda0e4fbf 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -440,12 +440,12 @@ if not CONFIG.y_bool("disable_startup_analytics", False): json={ "domain": "authentik", "name": "pageview", - "url": f"http://localhost/{env}", "referrer": f"{__version__} ({build_hash})", + "url": f"http://localhost/{env}?utm_source={__version__}&utm_medium={env}", }, headers={ "User-Agent": sha512(SECRET_KEY.encode("ascii")).hexdigest()[:16], - "Content-Type": "text/plain", + "Content-Type": "application/json", }, )