root: set utm_source

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-09 23:23:47 +01:00
parent 4a773b2b4f
commit 5d479a6c8f

View file

@ -440,12 +440,12 @@ if not CONFIG.y_bool("disable_startup_analytics", False):
json={ json={
"domain": "authentik", "domain": "authentik",
"name": "pageview", "name": "pageview",
"url": f"http://localhost/{env}",
"referrer": f"{__version__} ({build_hash})", "referrer": f"{__version__} ({build_hash})",
"url": f"http://localhost/{env}?utm_source={__version__}&utm_medium={env}",
}, },
headers={ headers={
"User-Agent": sha512(SECRET_KEY.encode("ascii")).hexdigest()[:16], "User-Agent": sha512(SECRET_KEY.encode("ascii")).hexdigest()[:16],
"Content-Type": "text/plain", "Content-Type": "application/json",
}, },
) )