Add GoatCounter to a SPA

Custom count() example for hooking in to an SPA nagivating by #:

    window.goatcounter = {no_onload: true}

    window.addEventListener('hashchange', function(e) {
            path: location.pathname + + location.hash,
<script data-goatcounter=""
        async src="//"></script>

Questions or problems?

Feel free to get in touch if you’ve got any questions or having any problems; a lot of times they can be resolved without too much problems.

Ways to contact me: show