1
0
Fork 0

Detect 127.0.0.1 as localhost

This commit is contained in:
Daniel Kempkens 2014-12-07 19:49:03 +01:00
parent cb2684197f
commit 66ce1b17f5

View file

@ -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');