From be2bb0ba60b1faf9fbbd91c7b58cdcbb46a77790 Mon Sep 17 00:00:00 2001 From: atavism Date: Wed, 12 Jun 2024 14:39:02 -0700 Subject: [PATCH] update event name --- lib/common/session_model.dart | 4 ++-- lib/messaging/onboarding/welcome.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/session_model.dart b/lib/common/session_model.dart index 128c4d5af..21f8456b3 100644 --- a/lib/common/session_model.dart +++ b/lib/common/session_model.dart @@ -618,8 +618,8 @@ class SessionModel extends Model { } Future trackUserAction( - String name, [ - String url = '', + String name, + String url, [ String title = '', ]) async { if (isMobile()) { diff --git a/lib/messaging/onboarding/welcome.dart b/lib/messaging/onboarding/welcome.dart index 24155e93d..0832ae54c 100644 --- a/lib/messaging/onboarding/welcome.dart +++ b/lib/messaging/onboarding/welcome.dart @@ -54,7 +54,7 @@ class Welcome extends StatelessWidget { text: 'get_started'.i18n, onPressed: () async { await messagingModel.start(); - await sessionModel.trackUserAction('Started using Lantern Chat'); + await sessionModel.trackUserAction('User started using Lantern Chat', '/chat'); await context.router.push(const ChatNumberMessaging()); }, ),