Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Removed google analytics
Browse files Browse the repository at this point in the history
Relates to elastic#39 (not closing as it still under discussion)
  • Loading branch information
bleskes committed Jan 22, 2014
1 parent be7fa4e commit f21d3d2
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 40 deletions.
20 changes: 0 additions & 20 deletions sense/app/analytics.js

This file was deleted.

5 changes: 1 addition & 4 deletions sense/app/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
define([
'analytics',
'curl',
'help_popup',
'history',
Expand All @@ -10,7 +9,7 @@ define([
'misc_inputs',
'utils'
],
function (_gaq, curl, $helpPopup, history, input, $, mappings, output, miscInputs, utils) {
function (curl, $helpPopup, history, input, $, mappings, output, miscInputs, utils) {
'use strict';

$(document.body).removeClass('fouc');
Expand Down Expand Up @@ -58,8 +57,6 @@ define([
}
);
saveCurrentState();

_gaq.push(['_trackEvent', "elasticsearch", 'query']);
});
}

Expand Down
5 changes: 1 addition & 4 deletions sense/app/help_popup.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
define([
'sense_editor/editor',
'analytics',
'jquery',

'bootstrap'
], function (SenseEditor, _gaq, $) {
], function (SenseEditor, $) {
'use strict';

var $helpPopup = $("#help_popup");
Expand All @@ -21,7 +19,6 @@ define([
].join('\n');

$helpPopup.on('shown', function () {
_gaq.push(['_trackEvent', "help", 'shown']);
$(html).appendTo("#help_example_container");
var example_editor = new SenseEditor($("#help_example_editor"));
example_editor.setReadOnly(true);
Expand Down
4 changes: 1 addition & 3 deletions sense/app/history.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
define([
'_',
'sense_editor/editor',
'analytics',
'jquery',
'moment',
'settings'
], function (_, SenseEditor, _gaq, $, moment) {
], function (_, SenseEditor, $, moment) {
'use strict';

function History() {
Expand Down Expand Up @@ -129,7 +128,6 @@ define([
});

li.bind('apply', function () {
_gaq.push(['_trackEvent', "history", 'applied']);
self.restoreFromHistory(hist_elem);
});

Expand Down
4 changes: 1 addition & 3 deletions sense/app/input.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
define([
'ace',
'analytics',
'autocomplete',
'jquery',
'mappings',
Expand All @@ -11,7 +10,7 @@ define([
'utils',
'zeroclip',
'ace_ext_language_tools'
], function (ace, _gaq, Autocomplete, $, mappings, output, SenseEditor, settings, require, utils, ZeroClipboard) {
], function (ace, Autocomplete, $, mappings, output, SenseEditor, settings, require, utils, ZeroClipboard) {
'use strict';

// disable standard context based autocompletion.
Expand Down Expand Up @@ -113,7 +112,6 @@ define([
})

zc.on('complete', function () {
_gaq.push(['_trackEvent', "curl", 'copied']);
$copyAsCURL.click();
});

Expand Down
4 changes: 1 addition & 3 deletions sense/app/sense_editor/editor.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
define([
'_',
'ace',
'analytics',
'curl',
'jquery',
'sense_editor/row_parser',
'sense_editor/mode/sense',
'utils'
], function (_, ace, _gaq, curl, $, RowParser, SenseMode, utils) {
], function (_, ace, curl, $, RowParser, SenseMode, utils) {
'use strict';

function isInt(x) {
Expand Down Expand Up @@ -286,7 +285,6 @@ define([
};

editor.handleCURLPaste = function (text) {
_gaq.push(['_trackEvent', "curl", 'pasted']);
var curlInput = curl.parseCURL(text);
if ($("#es_server").val()) curlInput.server = null; // do not override server

Expand Down
3 changes: 1 addition & 2 deletions sense/app/welcome_popup.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
define([
'sense_editor/editor',
'analytics',
'jquery',

'bootstrap'
], function (SenseEditor, _gaq, $) {
], function (SenseEditor, $) {
'use strict';

var $welcomePopup = $("#welcome_popup");
Expand Down
1 change: 0 additions & 1 deletion sense/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ <h3>Welcome to Sense</h3>
<script src="vendor/require/require.js"></script>
<script src="app/require.config.js"></script>
<script>
var SENSE_VERSION = '1.0.0';
// make sure all of ace is loaded first.
require(['require','ace'], function (require) { require(['app'], function () {})});
</script>
Expand Down

0 comments on commit f21d3d2

Please sign in to comment.