Skip to content

Commit

Permalink
fix: clarity id in head
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Jan 18, 2025
1 parent 63bd39d commit f86e8d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/logify.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def get_client_clarity_user_id(request: Request) -> str:
# Clarity User ID is stored in the cookie, with `_clck` as the key, whose content is the substring before content `%7C`
if "_clck" in request.cookies:
return request.cookies["_clck"].split("%7C")[0]
if "Clarity-ID" in request.headers:
return request.headers['Clarity-ID']
return ''

def binding_user_credentials(request: Request) -> dict:
Expand Down

0 comments on commit f86e8d8

Please sign in to comment.