mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 11:14:59 +00:00
feat: Add optional analytics tracking
This commit is contained in:
parent
474ac62391
commit
b11c17dbd4
3 changed files with 16 additions and 1 deletions
|
@ -6,7 +6,12 @@ from mixpanel import Mixpanel
|
|||
|
||||
|
||||
class Analytics:
|
||||
def __init__(self, project_token="3f9ad6b9d7b7e8e5a1a5a9a7b0b0b0b0"):
|
||||
def __init__(self, track):
|
||||
if not track:
|
||||
self.mp = None
|
||||
return
|
||||
|
||||
project_token = "3f9ad6b9d7b7e8e5a1a5a9a7b0b0b0b0"
|
||||
self.mp = Mixpanel(project_token) if project_token else None
|
||||
self.user_id = self.get_or_create_uuid()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue