1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-15 20:35:23 +03:00

Added Analytics Tracking for Each 'Save' Button Click that Tracks

Changes.

This should help by giving an upper bound for how many users change
these settings at all.
This commit is contained in:
Michael Keller 2021-08-08 01:51:04 +12:00
parent 2d268ee115
commit 79d6021660
9 changed files with 16 additions and 8 deletions

View file

@ -109,6 +109,14 @@ Analytics.prototype.sendChangeEvents = function (category, changeList) {
}
};
Analytics.prototype.sendSaveAndChangeEvents = function (category, changeList, tabName) {
this.sendEvent(category, 'Save', {
eventLabel: tabName,
eventValue: Object.keys(changeList).length,
});
this.sendChangeEvents(category, changeList);
};
Analytics.prototype.sendAppView = function (viewName) {
this._googleAnalytics.screenview(viewName);
};