From 188740974f3acfd9491994e46c443a79d6e29233 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 13 May 2020 11:56:36 +0200 Subject: [PATCH] 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. . --- lib/state_container.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/state_container.dart b/lib/state_container.dart index f25f6fdd..e0a0546c 100644 --- a/lib/state_container.dart +++ b/lib/state_container.dart @@ -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,