add telemetry method to record app-installed event

This commit is contained in:
mungai-njoroge
2023-09-27 19:30:55 +03:00
parent 4f757e989f
commit d3682e4597
3 changed files with 17 additions and 1 deletions
+7
View File
@@ -62,6 +62,13 @@ class Telemetry:
if has_connection():
cls.posthog.capture(cls.user_id, event=f"v{Release.APP_VERSION}-{event}")
@classmethod
def send_app_installed(cls):
"""
Sends an event to posthog when the app is installed.
"""
cls.send_event("app-installed")
@classmethod
def send_artist_visited(cls):
"""