new tracking events

pull/120/head
Pawel Spychalski (DzikuVx) 8 years ago
parent be37f89731
commit 9f7fae6f80

@ -3,8 +3,6 @@
TABS.ports = {};
TABS.ports.initialize = function (callback, scrollPosition) {
var self = this;
var board_definition = {};
var functionRules = [
@ -15,7 +13,7 @@ TABS.ports.initialize = function (callback, scrollPosition) {
{name: 'TELEMETRY_SMARTPORT', groups: ['telemetry'], maxPorts: 1},
{name: 'TELEMETRY_LTM', groups: ['telemetry'], sharableWith: ['msp'], notSharableWith: ['blackbox'], maxPorts: 1},
{name: 'RX_SERIAL', groups: ['rx'], maxPorts: 1},
{name: 'BLACKBOX', groups: ['logging', 'blackbox'], sharableWith: ['msp'], notSharableWith: ['telemetry'], maxPorts: 1},
{name: 'BLACKBOX', groups: ['logging', 'blackbox'], sharableWith: ['msp'], notSharableWith: ['telemetry'], maxPorts: 1}
];
if (semver.gte(CONFIG.flightControllerVersion, "1.2.0")) {
@ -90,7 +88,6 @@ TABS.ports.initialize = function (callback, scrollPosition) {
$('#content').load("./tabs/ports.html", on_tab_loaded_handler);
board_definition = BOARD.find_board_definition(CONFIG.boardIdentifier);
console.log('Using board definition', board_definition);
}
}
@ -223,7 +220,7 @@ TABS.ports.initialize = function (callback, scrollPosition) {
// update configuration based on current ui state
SERIAL_CONFIG.ports = [];
var ports_e = $('.tab-ports .portConfiguration').each(function (portConfiguration_e) {
$('.tab-ports .portConfiguration').each(function () {
var portConfiguration_e = this;
@ -238,6 +235,10 @@ TABS.ports.initialize = function (callback, scrollPosition) {
functions.push(telemetryFunction);
}
if (telemetryFunction.length > 0) {
googleAnalytics.sendEvent('Setting', 'Telemetry Protocol', telemetryFunction);
}
var serialPort = {
functions: functions,
msp_baudrate: $(portConfiguration_e).find('.msp_baudrate').val(),

@ -371,11 +371,15 @@ TABS.profiles.initialize = function (callback, scrollPosition) {
$(this).parent().addClass('active');
$('#save-button').removeClass('disabled');
googleAnalytics.sendEvent('Presets', 'Displayed', currentPreset.name);
});
$('#execute-button').click(function () {
applyAndSave();
OSD.GUI.jbox.close();
googleAnalytics.sendEvent('Presets', 'Applied', currentPreset.name);
});
localize();

Loading…
Cancel
Save