From 0360e5f52617bf1c90dbf76e448df1dbe594138e Mon Sep 17 00:00:00 2001 From: Robbie Date: Mon, 6 Nov 2023 23:07:11 +0000 Subject: [PATCH] Update posthog/demo/matrix/models.py Co-authored-by: Michael Matloka --- posthog/demo/matrix/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/demo/matrix/models.py b/posthog/demo/matrix/models.py index 235fd2de23f8a..e1698d7dd7b3b 100644 --- a/posthog/demo/matrix/models.py +++ b/posthog/demo/matrix/models.py @@ -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