Remove conditional ga HTTPS loading

Shortcut since site is always secure.
Fixes gh-137
This commit is contained in:
Nick Schonning 2013-05-08 23:13:18 -04:00
parent e2d92c2ffb
commit c1f9ed20e3

View File

@ -3,7 +3,10 @@ var setupGoogleAnalytics = function() {
_gaq.push(['_setAccount', Travis.config.ga_code]);
_gaq.push(['_trackPageview']);
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
}