google analytics ignore non-dpb587.me hostnames

This commit is contained in:
Danny Berger
2013-03-14 23:14:53 -06:00
parent addd22f850
commit d78f59c1c6

View File

@@ -31,6 +31,7 @@
_gaq.push(['_trackPageview']);
(function() {
if ('dpb587.me' != window.location.hostname) return;
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);