From 66ce1b17f5ba794a30f1c2987a74a5949935722a Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sun, 7 Dec 2014 19:49:03 +0100 Subject: [PATCH] Detect 127.0.0.1 as localhost --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index ea5b634..745aaf0 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -21,7 +21,7 @@ (function() { var host = window.location.hostname; - if (host !== 'localhost') { // No tracking on localhost + if (host !== 'localhost' && host !== '127.0.0.1') { // No tracking on localhost ga('create', 'UA-28082386-3', host); ga('set', 'anonymizeIp', true); ga('send', 'pageview');