From 5f5d79dc7395392057028380e876a2883722ee38 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Mon, 9 Apr 2012 17:10:48 -0700 Subject: GA fix --- js/slides.js | 8 ++++++-- template.html | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/js/slides.js b/js/slides.js index c28300c..30aee54 100644 --- a/js/slides.js +++ b/js/slides.js @@ -158,6 +158,10 @@ SlideDeck.prototype.loadConfig_ = function() { this.addFavIcon_(settings.favIcon); } + if (settings.title) { + document.title = settings.title; + } + if (settings.title) { document.title = settings.title; } @@ -166,7 +170,7 @@ SlideDeck.prototype.loadConfig_ = function() { prettyPrint(); } - if (settings.analyticsId) { + if (settings.analytics) { this.loadAnalytics_(); } @@ -505,7 +509,7 @@ SlideDeck.prototype.loadTheme_ = function(theme) { */ SlideDeck.prototype.loadAnalytics_ = function() { var _gaq = window['_gaq'] || []; - _gaq.push(['_setAccount', this.config_.settings.analyticsId]); + _gaq.push(['_setAccount', this.config_.settings.analytics]); //_gaq.push(['_setDomainName', '.bleedinghtml5.appspot.com']); _gaq.push(['_trackPageview']); diff --git a/template.html b/template.html index 1339ee9..afac672 100644 --- a/template.html +++ b/template.html @@ -1,3 +1,11 @@ + -- cgit v1.2.3