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:
parent
2d268ee115
commit
79d6021660
9 changed files with 16 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue