mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
add telemetry method to record app-installed event
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user