Detect 127.0.0.1 as localhost
This commit is contained in:
parent
cb2684197f
commit
66ce1b17f5
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue