mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-26 08:38:58 -04:00
Track upgrades
This commit is contained in:
1 parent
2833698736
commit
b887f24759
1 file changed
+2
@@ -39,6 +39,7 @@ import {importCurl} from '../../backend/export/curl';
|
||||
import {trackLegacyEvent} from '../../backend/analytics';
|
||||
import {getAppVersion} from '../../backend/appInfo';
|
||||
import {getModal} from '../components/modals/index';
|
||||
import {trackEvent} from '../../backend/ganalytics';
|
||||
|
||||
|
||||
class App extends Component {
|
||||
@@ -429,6 +430,7 @@ class App extends Component {
|
||||
// TODO: Show a welcome message
|
||||
trackLegacyEvent('First Launch');
|
||||
} else if (lastVersion !== getAppVersion()) {
|
||||
trackEvent('General', 'Updated', getAppVersion());
|
||||
getModal(ChangelogModal).show();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user