Host count.js somewhere else

You can host the count.js script yourself, or include it in your page directly inside <script> tags. You won’t get any new features or other updates, but the /count endpoint is guaranteed to remain compatible so it should never break (any future incompatible changes will be a different endpoint, such as /count/v2).

To host count.js somewhere else just copy it from https://gc.zgo.at/count.js and adjust the URL in data-goatcounter.

If you include it in the page’s body then be sure to include the data-goatcounter attribute on the script tag, or set goatcounter.endpoint so GoatCounter knows where to send the pageviews to:

<script data-goatcounter="https://stats.196000.xyz/count">
    // [.. contents of count.js ..]
</script>

or:

<script>
    window.goatcounter = {endpoint: 'https://stats.196000.xyz/count'}

    // [.. contents of count.js ..]
</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