Skip to content

Commit

Permalink
Update posthog/demo/matrix/models.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Matloka <[email protected]>
  • Loading branch information
robbie-c and Twixes authored Nov 6, 2023
1 parent c2e306c commit 0360e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/demo/matrix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def capture(self, event: str, properties: Optional[Properties] = None):
if utm_key in parsed_current_url_query:
utm_value = parsed_current_url_query[utm_key][0]
combined_properties[utm_key] = utm_value
combined_properties["$set"].update({utm_key: utm_value})
combined_properties["$set"][utm_key] = utm_value
if properties:
if referrer := properties.get("$referrer"):
referring_domain = urlparse(referrer).netloc if referrer != "$direct" else referrer
Expand Down

0 comments on commit 0360e5f

Please sign in to comment.