From e167f88bdc086c4d28c50db93fdc8eda302e900a Mon Sep 17 00:00:00 2001 From: Donna <6880495+Tofufu@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:11:05 -0800 Subject: [PATCH] Update identifying-users-simplified.mdx (#1674) Updating the Python pseudocode for Simplified ID Merge. Having the function: def identify_user(request): properties = { "$device_id": uuid.uuid4(), "$identified_id": request.user.username } track_to_mp(request, "$identify", properties) may cause confusion because $identify is not used id v3 nor is $identified_id. The main part of the pseudocode should suffice as an example as only $device_id and $user_id are used for v3 --- .../id-management/identifying-users-simplified.mdx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pages/docs/tracking-methods/id-management/identifying-users-simplified.mdx b/pages/docs/tracking-methods/id-management/identifying-users-simplified.mdx index 819e96062e..ef020295f6 100644 --- a/pages/docs/tracking-methods/id-management/identifying-users-simplified.mdx +++ b/pages/docs/tracking-methods/id-management/identifying-users-simplified.mdx @@ -186,14 +186,6 @@ def track_to_mp(request, event_name, properties): # Note: leave the first argument blank here, since we're passing $device_id and $user_id as properties. mp.track("", event_name, properties) - -def identify_user(request): - properties = { - "$device_id": uuid.uuid4(), - "$identified_id": request.user.username - - } - track_to_mp(request, "$identify", properties) ``` ## Best Practices