diff --git a/Gruntfile.js b/Gruntfile.js index 279bad41b..56dfe758d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -519,7 +519,7 @@ module.exports = function(grunt) { "widgets/library_individual/views/view_library.js": 67, "components/library_controller.js" : 66, "widgets/wordcloud/widget.js": 79, - "components/analytics.js": 72 + "components/analytics.js": 71 } } }, diff --git a/src/js/components/analytics.js b/src/js/components/analytics.js index cabb7a48e..c25246ab1 100644 --- a/src/js/components/analytics.js +++ b/src/js/components/analytics.js @@ -35,7 +35,6 @@ define([ // Immediately add a pageview event to the queue. window[gaName]("create", config.googleTrackingCode, config.googleTrackingOptions); - window[gaName]("send", "pageview"); // Asynchronously load Google Analytics, letting it take over our `window[gaName]` // object after it loads. This allows us to add events to `window[gaName]` even diff --git a/src/js/wraps/discovery_mediator.js b/src/js/wraps/discovery_mediator.js index 810347d1f..7f42c1f66 100644 --- a/src/js/wraps/discovery_mediator.js +++ b/src/js/wraps/discovery_mediator.js @@ -367,7 +367,6 @@ define([ activate: function() { FeedbackMediator.prototype.activate.apply(this, arguments); this.pubsub.subscribe(this.pubSubKey, this.pubsub.INVITING_REQUEST, _.bind(this.onNewCycle, this)); - this.pubsub.subscribe(this.pubSubKey, this.pubsub.ARIA_ANNOUNCEMENT, _.bind(this.onPageChange, this)); this.pubsub.subscribe(this.pubSubKey, this.pubsub.APP_EXIT, _.bind(this.onAppExit, this)); }, @@ -375,13 +374,6 @@ define([ this.reset(); }, - onPageChange: function(msg) { - msg = msg.replace('Switching to: ', ''); - analytics('send', 'pageview', { - page: msg - }); - }, - onAppExit: function(data) { console.log('App exit requested to: ' + data); //TODO:rca - save the application history and persist it