Skip to content

Commit

Permalink
well, have it check host name the other way
Browse files Browse the repository at this point in the history
  • Loading branch information
mustardamus committed Jan 10, 2013
1 parent 2db90c5 commit b83dbb8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/views/index.haml
Expand Up @@ -273,14 +273,14 @@
%a{:href => 'http://twitter.com/jqapi'} Follow @jqapi for updates

:javascript
if(window.location.hostname !== 'jqapi.com') return;

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12732447-1']);
_gaq.push(['_trackPageview']);
(function() {
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);
})();
if(window.location.hostname === 'jqapi.com') {
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12732447-1']);
_gaq.push(['_trackPageview']);
(function() {
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);
})();
}

0 comments on commit b83dbb8

Please sign in to comment.