mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: add aider version number to all events
This commit is contained in:
parent
b11c17dbd4
commit
1a49974f98
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ import uuid
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from mixpanel import Mixpanel
|
from mixpanel import Mixpanel
|
||||||
|
from aider import __version__
|
||||||
|
|
||||||
|
|
||||||
class Analytics:
|
class Analytics:
|
||||||
|
@ -31,4 +32,7 @@ class Analytics:
|
||||||
|
|
||||||
def track_event(self, event_name, properties=None):
|
def track_event(self, event_name, properties=None):
|
||||||
if self.mp:
|
if self.mp:
|
||||||
|
if properties is None:
|
||||||
|
properties = {}
|
||||||
|
properties['aider_version'] = __version__
|
||||||
self.mp.track(self.user_id, event_name, properties)
|
self.mp.track(self.user_id, event_name, properties)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue