diff --git a/lib/setup/screens.dart b/lib/setup/screens.dart index 3dc65913..d2fa732e 100644 --- a/lib/setup/screens.dart +++ b/lib/setup/screens.dart @@ -477,9 +477,20 @@ class GitHostSetupScreenState extends State { await repo.commit(message: "Add gitignore file"); } + String hostType = "Unknown"; + if (_gitCloneUrl.contains("github.com")) { + hostType = "GitHub"; + } else if (_gitCloneUrl.contains("gitlab.org")) { + hostType = "GitLab.org"; + } else if (_gitCloneUrl.contains("gitlab")) { + hostType = "GitLab"; + } + getAnalytics().logEvent( name: "onboarding_complete", - parameters: {}, + parameters: { + "host_type": hostType, + }, ); Navigator.pop(context); widget.onCompletedFunction();