Created
July 7, 2014 22:07
-
-
Save patrickgilmour/9d81e4205ea6df144d0d to your computer and use it in GitHub Desktop.
Revisions
-
patrickgilmour revised this gist
Jul 7, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,7 @@ // Replace MYLIVEDOMAIN.com with your domain. // Google Analytics will now not receive hits from cloned development versions of your site on localhost etc. // Also checkout `Block Yourself from Analytics` plugin for Chrome // see also: http://stackoverflow.com/questions/1251922/is-there-a-way-to-stop-google-analytics-counting-development-work-as-hits if (document.location.hostname.search("MYLIVEDOMAIN.com") !== -1) { -
patrickgilmour created this gist
Jul 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <script> // Replace MYLIVEDOMAIN.com with your domain. // Google Analytics will now not receive hits from cloned development versions of your site on localhost etc. // Also checkout `Block Yourself from Analytics` plugin for Chrome if (document.location.hostname.search("MYLIVEDOMAIN.com") !== -1) { /* Google Analytics Code here */ } </script>