Skip to content

Commit

Permalink
change user_id param name for GA (#987)
Browse files Browse the repository at this point in the history
it's reserved name

CPCN-176
  • Loading branch information
petrjasek authored Jul 4, 2024
1 parent 9fb0efd commit 194e04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newsroom/template_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,5 @@ def get_ga_user_properties(user: User) -> Dict[str, str]:
return {
"company": (company.get("name") if company else "") or "none",
"user": f"{user['first_name']} {user['last_name'][:1]}".strip(),
"user_id": str(user.get("_id") or ""),
"user_internal_id": str(user.get("_id") or ""), # user_id is reserved name
}

0 comments on commit 194e04e

Please sign in to comment.