diff options
author | Eric Bidelman | 2012-04-09 17:10:48 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-04-09 17:10:48 -0700 |
commit | 5f5d79dc7395392057028380e876a2883722ee38 (patch) | |
tree | f086b408b909f454a66b64bbb057418de65d703f | |
parent | deed0d152700805b8ac4d7f9071b51a6b53491ac (diff) | |
download | io-slides-remote-5f5d79dc7395392057028380e876a2883722ee38.tar.gz |
GA fix
-rw-r--r-- | js/slides.js | 8 | ||||
-rw-r--r-- | 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 | |||
@@ -161,12 +161,16 @@ SlideDeck.prototype.loadConfig_ = function() { | |||
161 | if (settings.title) { | 161 | if (settings.title) { |
162 | document.title = settings.title; | 162 | document.title = settings.title; |
163 | } | 163 | } |
164 | |||
165 | if (settings.title) { | ||
166 | document.title = settings.title; | ||
167 | } | ||
164 | 168 | ||
165 | if (!!!('usePrettify' in settings) || settings.usePrettify) { | 169 | if (!!!('usePrettify' in settings) || settings.usePrettify) { |
166 | prettyPrint(); | 170 | prettyPrint(); |
167 | } | 171 | } |
168 | 172 | ||
169 | if (settings.analyticsId) { | 173 | if (settings.analytics) { |
170 | this.loadAnalytics_(); | 174 | this.loadAnalytics_(); |
171 | } | 175 | } |
172 | 176 | ||
@@ -505,7 +509,7 @@ SlideDeck.prototype.loadTheme_ = function(theme) { | |||
505 | */ | 509 | */ |
506 | SlideDeck.prototype.loadAnalytics_ = function() { | 510 | SlideDeck.prototype.loadAnalytics_ = function() { |
507 | var _gaq = window['_gaq'] || []; | 511 | var _gaq = window['_gaq'] || []; |
508 | _gaq.push(['_setAccount', this.config_.settings.analyticsId]); | 512 | _gaq.push(['_setAccount', this.config_.settings.analytics]); |
509 | //_gaq.push(['_setDomainName', '.bleedinghtml5.appspot.com']); | 513 | //_gaq.push(['_setDomainName', '.bleedinghtml5.appspot.com']); |
510 | _gaq.push(['_trackPageview']); | 514 | _gaq.push(['_trackPageview']); |
511 | 515 | ||
diff --git a/template.html b/template.html index 1339ee9..afac672 100644 --- a/template.html +++ b/template.html | |||
@@ -1,3 +1,11 @@ | |||
1 | <!-- | ||
2 | Google IO 2012 HTML5 Slide Template | ||
3 | |||
4 | Authors: Eric Bidelman <ebidel@gmail.com> | ||
5 | Luke Mahé | ||
6 | |||
7 | URL: https://code.google.com/p/io-2012-slides | ||
8 | --> | ||
1 | <!DOCTYPE html> | 9 | <!DOCTYPE html> |
2 | <html> | 10 | <html> |
3 | <head> | 11 | <head> |