Permalink
Browse files

well, have it check host name the other way

  • Loading branch information...
1 parent 2db90c5 commit b83dbb8a86f1895003f093392387b76de816c175 @mustardamus mustardamus committed Jan 10, 2013
Showing with 11 additions and 11 deletions.
  1. +11 −11 app/views/index.haml
View
@@ -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.