We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b01ca commit 0a1564cCopy full SHA for 0a1564c
apps/public/content/docs/(tracking)/sdks/python.mdx
@@ -81,18 +81,15 @@ op.track("login_successful", {
81
82
### Identifying Users
83
84
-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:
85
86
```python
87
-op.identify({
88
- "profile_id": "123", # Required
89
- "first_name": "Joe",
90
- "last_name": "Doe",
91
- "email": "joe@doe.com",
92
- "properties": {
93
- "tier": "premium",
94
- "company": "Acme Inc"
95
- }
+op.identify("user123", {
+ "firstName": "John",
+ "lastName": "Doe",
+ "email": "john@example.com",
+ "tier": "premium",
+ "company": "Acme Inc"
96
})
97
```
98
0 commit comments