Wiring up analytics for courseware, unifying analytics between coursewares and bonfires, general housekeeping tasks for live push

This commit is contained in:
Michael Q Larson
2015-02-07 21:11:26 -08:00
parent 07c5757538
commit 180699adb2
8 changed files with 19 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
$(document).ready(function() {
if (bonfireName) {
ga('send', 'event', 'Bonfire', 'load', bonfireName + ':' + Math.floor(Date.now() / 1000));
challengeName = challengeName || 'Untitled';
if (challengeName) {
ga('send', 'event', 'Challenge', 'load', challengeName);
}
var CSRF_HEADER = 'X-CSRF-Token';
@@ -107,7 +108,7 @@ $(document).ready(function() {
// Bonfire instructions functions
$('#more-info').on('click', function() {
ga('send', 'event', 'Bonfire', 'more-info', bonfireName);
ga('send', 'event', 'Challenge', 'more-info', challengeName);
$('#brief-instructions').hide();
$('#long-instructions').show().removeClass('hide');