From 0a1564c79863c8c66c246515f34a672701d6d487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Tue, 2 Dec 2025 23:37:44 +0100 Subject: [PATCH] docs: update python sdk --- .../content/docs/(tracking)/sdks/python.mdx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/apps/public/content/docs/(tracking)/sdks/python.mdx b/apps/public/content/docs/(tracking)/sdks/python.mdx index 46c1f459..07e2b57e 100644 --- a/apps/public/content/docs/(tracking)/sdks/python.mdx +++ b/apps/public/content/docs/(tracking)/sdks/python.mdx @@ -81,18 +81,15 @@ op.track("login_successful", { ### Identifying Users -To identify a user, use the `identify` method: +To identify a user, use the `identify` method with the profile ID as the first argument and a dictionary of traits as the second: ```python -op.identify({ - "profile_id": "123", # Required - "first_name": "Joe", - "last_name": "Doe", - "email": "joe@doe.com", - "properties": { - "tier": "premium", - "company": "Acme Inc" - } +op.identify("user123", { + "firstName": "John", + "lastName": "Doe", + "email": "john@example.com", + "tier": "premium", + "company": "Acme Inc" }) ```