Skip to content

Commit

Permalink
make url and title parameters optional in plausible events
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jun 12, 2024
1 parent cf78cd3 commit 8dccc3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/common/session_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,10 @@ class SessionModel extends Model {
}

Future<void> trackUserAction(
String name, {
String name, [
String url = '',
String title = '',
}) async {
]) async {
if (isMobile()) {
return methodChannel.invokeMethod('trackUserAction', <String, dynamic>{
'name': name,
Expand Down
2 changes: 1 addition & 1 deletion lib/messaging/onboarding/welcome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Welcome extends StatelessWidget {
text: 'get_started'.i18n,
onPressed: () async {
await messagingModel.start();
await sessionModel.trackUserAction('New Lantern Chat');
await sessionModel.trackUserAction('Started using Lantern Chat');
await context.router.push(const ChatNumberMessaging());
},
),
Expand Down

0 comments on commit 8dccc3b

Please sign in to comment.