From 1cc7a49453e0ee7f03b39ccc36976f0669c9a940 Mon Sep 17 00:00:00 2001 From: Will Tomlins Date: Mon, 23 Jun 2014 11:12:05 +0100 Subject: [PATCH] Sets non-interaction flag for scroll analytics events Before, ScrollTo events were not being flagged as non-interaction events, so google was factoring them into bounce rates. This flags ScrollTo events as non-interactive to fix this. Info on non-interactive flag: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#non-interaction --- app/assets/javascripts/analytics/scroll-tracker.js | 4 +++- spec/javascripts/analytics/scroll-tracker-spec.js | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/analytics/scroll-tracker.js b/app/assets/javascripts/analytics/scroll-tracker.js index c3390b5fc..4103bdb6f 100644 --- a/app/assets/javascripts/analytics/scroll-tracker.js +++ b/app/assets/javascripts/analytics/scroll-tracker.js @@ -116,7 +116,9 @@ for ( var i=0; i