Firebase Analytics: Set onboarded property

This makes it easier to calculate the actual retention rate as some
40-50% of the users never land up setting up a git sync.
.
This commit is contained in:
Vishesh Handa
2020-05-13 11:56:36 +02:00
parent 66eeaa552b
commit 188740974f

View File

@ -53,6 +53,12 @@ class StateContainer with ChangeNotifier {
removeExistingRemoteClone();
}
// Makes it easier to filter the analytics
getAnalytics().firebase.setUserProperty(
name: 'onboarded',
value: appState.remoteGitRepoConfigured.toString(),
);
var cachePath = p.join(appState.gitBaseDirectory, "cache.json");
_notesCache = NotesCache(
filePath: cachePath,