Skip to content

Commit 1188176

Browse files
committed
Siplify referrer - use only the domain name, not any specific path
1 parent e4a164f commit 1188176

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/analytics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def post(event_id):
5858
usedforsecurity=False,
5959
).digest()
6060
)
61-
referrer = (
62-
os.environ["GITHUB_SERVER_URL"] + "/" + os.environ["GITHUB_REPOSITORY_OWNER"]
63-
)
61+
62+
# Record only the domain name, not any specific paths
63+
referrer = os.environ["GITHUB_SERVER_URL"]
6464

6565
# Plausible.io rejects GitHub's original IP address b/c it is listed as a
6666
# datacenter address and we don't have information about the actual address of the

0 commit comments

Comments
 (0)