Remove conditional ga HTTPS loading
Shortcut since site is always secure. Fixes gh-137
This commit is contained in:
parent
e2d92c2ffb
commit
c1f9ed20e3
9
assets/scripts/vendor/ga.js
vendored
9
assets/scripts/vendor/ga.js
vendored
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user