From 462b2c88e85d07b212eece2a30ec69da1d6dce00 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Thu, 10 Nov 2016 16:25:44 +0100 Subject: added favorite analytics --- public/javascripts/bundle.js | 37 +++++++++++++++++++++++++++++++------ public/javascripts/main.js | 26 +++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 7 deletions(-) (limited to 'public/javascripts') diff --git a/public/javascripts/bundle.js b/public/javascripts/bundle.js index 10ec168..a89dbd2 100644 --- a/public/javascripts/bundle.js +++ b/public/javascripts/bundle.js @@ -576,7 +576,7 @@ var nextButton = document.querySelectorAll('input[type="button"]')[1]; var currentWeekNode = document.querySelector('.current'); var favNode = document.querySelector('.fav'); -if (window.location.href.split('?')[1] !== 'nfd') { +if (!(window.location.href.split('?')[1] && window.location.href.split('?')[1].indexOf('nfd') >= 0)) { // nfd = no feature detection if (document.querySelector('#schedule').getClientRects()[0].bottom !== document.body.offsetHeight) { window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/'; @@ -585,6 +585,8 @@ if (window.location.href.split('?')[1] !== 'nfd') { window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/'; }; } +} else { + console.log('feature detection is OFF'); } var selectedResult = -1; @@ -765,11 +767,34 @@ favNode.addEventListener('click', function () { var currentFav = getCurrentFav(); if (currentFav) { - selectedUser = currentFav; - inputNode.value = selectedUser.value; - scheduleIframe.src = getURLOfUser(offset, selectedUser.type, selectedUser.index + 1); - updateFavNode(); + (function () { + selectedUser = currentFav; + inputNode.value = selectedUser.value; + scheduleIframe.src = getURLOfUser(offset, selectedUser.type, selectedUser.index + 1); + updateFavNode(); + + var eventAction = void 0; + switch (selectedUser.type) { + case 'c': + eventAction = 'Class'; + break; + case 't': + eventAction = 'Teacher'; + break; + case 'r': + eventAction = 'Room'; + break; + case 's': + eventAction = 'Student'; + break; + } + var eventLabel = selectedUser.value; + + ga(function () { + ga('send', { hitType: 'event', eventCategory: 'search fav', eventAction: eventAction, eventLabel: eventLabel }); +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sZWN0ZWRVc2VyLnZhbHVlXG4gIHNjaGVkdWxlSWZyYW1lLnNyYyA9IGdldFVSTE9mVXNlcihvZmZzZXQsIHNlbGVjdGVkVXNlci50eXBlLCBzZWxlY3RlZFVzZXIuaW5kZXggKyAxKVxuICB1cGRhdGVGYXZOb2RlKClcblxuICBsZXQgZXZlbnRBY3Rpb25cbiAgc3dpdGNoIChzZWxlY3RlZFVzZXIudHlwZSkge1xuICAgIGNhc2UgJ2MnOlxuICAgICAgZXZlbnRBY3Rpb24gPSAnQ2xhc3MnXG4gICAgICBicmVha1xuICAgIGNhc2UgJ3QnOlxuICAgICAgZXZlbnRBY3Rpb24gPSAnVGVhY2hlcidcbiAgICAgIGJyZWFrXG4gICAgY2FzZSAncic6XG4gICAgICBldmVudEFjdGlvbiA9ICdSb29tJ1xuICAgICAgYnJlYWtcbiAgICBjYXNlICdzJzpcbiAgICAgIGV2ZW50QWN0aW9uID0gJ1N0dWRlbnQnXG4gICAgICBicmVha1xuICB9XG4gIGNvbnN0IGV2ZW50TGFiZWwgPSBzZWxlY3RlZFVzZXIudmFsdWVcblxuICBnYShmdW5jdGlvbiAoKSB7XG4gICAgZ2EoJ3NlbmQnLCB7IGhpdFR5cGU6ICdldmVudCcsIGV2ZW50Q2F0ZWdvcnk6ICdzZWFyY2ggZmF2JywgZXZlbnRBY3Rpb24sIGV2ZW50TGFiZWwgfSlcbiAgfSlcbn1cbiJdfQ== diff --git a/public/javascripts/main.js b/public/javascripts/main.js index 55bf054..98346dd 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -17,7 +17,8 @@ const nextButton = document.querySelectorAll('input[type="button"]')[1] const currentWeekNode = document.querySelector('.current') const favNode = document.querySelector('.fav') -if (window.location.href.split('?')[1] !== 'nfd') { // nfd = no feature detection +if (!(window.location.href.split('?')[1] && + window.location.href.split('?')[1].indexOf('nfd') >= 0)) { // nfd = no feature detection if (document.querySelector('#schedule').getClientRects()[0].bottom !== document.body.offsetHeight) { window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/' } else { @@ -25,6 +26,8 @@ if (window.location.href.split('?')[1] !== 'nfd') { // nfd = no feature detectio window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/' } } +} else { + console.log('feature detection is OFF') } let selectedResult = -1 @@ -208,4 +211,25 @@ if (currentFav) { inputNode.value = selectedUser.value scheduleIframe.src = getURLOfUser(offset, selectedUser.type, selectedUser.index + 1) updateFavNode() + + let eventAction + switch (selectedUser.type) { + case 'c': + eventAction = 'Class' + break + case 't': + eventAction = 'Teacher' + break + case 'r': + eventAction = 'Room' + break + case 's': + eventAction = 'Student' + break + } + const eventLabel = selectedUser.value + + ga(function () { + ga('send', { hitType: 'event', eventCategory: 'search fav', eventAction, eventLabel }) + }) } -- cgit v1.1