Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Made Events tracking not per-event based

Benjamin9b0d789ddd45
diff --git a/web/js/layers/wv.layers.sidebar.js b/web/js/layers/wv.layers.sidebar.js
index c3ff4af4a..2658d4493 100644
--- a/web/js/layers/wv.layers.sidebar.js
+++ b/web/js/layers/wv.layers.sidebar.js
@@ -246,6 +246,7 @@ wv.layers.sidebar = wv.layers.sidebar || function(models, config) {
$footerBtns.find("button").hide();
$("#layers-add").show();
} else if ( tab === "events" ) {
+ WVC.GA.event('Natural Events', 'Click', 'Events Tab');
$('.ui-tabs-nav')
.removeClass('firstselected')
.addClass('secondselected')
diff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.js
index 4b13143ed..d375b70cb 100644
--- a/web/js/naturalEvents/wv.naturalEvents.ui.js
+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js
@@ -169,7 +169,6 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {
});
$(self.selector + "content li").click(function() {
var dataIndex = $(this).attr("data-index");
- WVC.GA.event('Natural Events', 'Click', 'Event');
showEvent(dataIndex);
$(self.selector + "content li").removeClass('item-selected');
$(this).addClass('item-selected');
@@ -181,7 +180,6 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {
$(self.selector + "content a.date").click(function(event) {
var dataIndex = $(this).attr("data-index");
showEvent(dataIndex, $(this).attr("data-date-index"));
- WVC.GA.event('Natural Events', 'Click', 'Event');
event.stopPropagation();
});
resize();