Update GoatCounter script

This commit is contained in:
Wesley Moore 2020-01-31 07:42:11 +11:00
parent 145777deae
commit 9ab8e66a0e
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE
2 changed files with 2 additions and 15 deletions

View file

@ -26,18 +26,4 @@
</div> </div>
<span class="copyright">Copyright &copy; 2004 &ndash; <%= Date.today.year %> Wesley Moore</span> <span class="copyright">Copyright &copy; 2004 &ndash; <%= Date.today.year %> Wesley Moore</span>
</footer> </footer>
<script> <script data-goatcounter="https://binarytrance.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
(function() {
if (window.location.hostname.indexOf('localhost') > -1) {
return;
}
var script = document.createElement('script');
window.counter = 'https://binarytrance.goatcounter.com/count'
script.async = 1;
script.src = '//static.goatcounter.com/count.min.js';
var ins = document.getElementsByTagName('script')[0];
ins.parentNode.insertBefore(script, ins)
})();
</script>

View file

@ -26,6 +26,7 @@
<a href="https://github.com/wezm/wezm.net">Source on GitHub</a> <a href="https://github.com/wezm/wezm.net">Source on GitHub</a>
</div> </div>
</footer> </footer>
<script data-goatcounter="https://binarytrance.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body> </body>
</html> </html>