mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
HostSetup: Track if using GitHub/GitLab/other
This commit is contained in:
@ -477,9 +477,20 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
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: <String, dynamic>{},
|
||||
parameters: <String, dynamic>{
|
||||
"host_type": hostType,
|
||||
},
|
||||
);
|
||||
Navigator.pop(context);
|
||||
widget.onCompletedFunction();
|
||||
|
Reference in New Issue
Block a user