Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab65f8f0f8 | ||
|
|
34e92615c2 | ||
|
|
cf09644d4f | ||
|
|
0cfce57d0e |
@@ -1,5 +1,7 @@
|
||||
Copyright (c) 2020 PostHog (part of Hiberly Inc)
|
||||
|
||||
Copyright (c) 2013 Segment Inc. friends@segment.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
|
||||
@@ -53,7 +53,7 @@ An `identify` call requires
|
||||
|
||||
For example:
|
||||
```python
|
||||
posthog.capture('distinct id', {
|
||||
posthog.identify('distinct id', {
|
||||
'email': 'dwayne@gmail.com',
|
||||
'name': 'Dwayne Johnson'
|
||||
})
|
||||
@@ -69,6 +69,8 @@ In a purely back-end implementation, this means whenever an anonymous user does
|
||||
|
||||
The same concept applies for when a user logs in.
|
||||
|
||||
If you're using PostHog in the front-end and back-end, doing the `identify` call in the frontend will be enough.
|
||||
|
||||
An `alias` call requires
|
||||
- `previous distinct id` the unique ID of the user before
|
||||
- `distinct id` the current unique id
|
||||
|
||||
@@ -12,6 +12,7 @@ on_error: Callable = None
|
||||
debug: bool = False
|
||||
send: bool = True
|
||||
sync_mode:bool = False
|
||||
disabled: bool = False
|
||||
|
||||
default_client = None
|
||||
|
||||
@@ -109,6 +110,8 @@ def shutdown():
|
||||
def _proxy(method, *args, **kwargs):
|
||||
"""Create an analytics client if one doesn't exist and send to it."""
|
||||
global default_client
|
||||
if disabled:
|
||||
return None
|
||||
if not default_client:
|
||||
default_client = Client(api_key, host=host, debug=debug,
|
||||
on_error=on_error, send=send,
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
VERSION = '1.0.8'
|
||||
VERSION = '1.0.9'
|
||||
|
||||
Reference in New Issue
Block a user