Skip to content

Commit

Permalink
ignore ga when debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Apr 9, 2013
1 parent abf3a71 commit e4d0f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/snippet/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
if (location.port !== 80 || location.port !== 443) {
return;
}
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Expand Down

0 comments on commit e4d0f8e

Please sign in to comment.