mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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");
|
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(
|
getAnalytics().logEvent(
|
||||||
name: "onboarding_complete",
|
name: "onboarding_complete",
|
||||||
parameters: <String, dynamic>{},
|
parameters: <String, dynamic>{
|
||||||
|
"host_type": hostType,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
widget.onCompletedFunction();
|
widget.onCompletedFunction();
|
||||||
|
Reference in New Issue
Block a user