GoatCounter Extension

GoatCounter adds free analytics/stats to your website. You can learn which pages your visitors are viewing, where they're being referred from and much more. It is more privacy friendly than many alternatives. It is very easy to sign up for and use.

Download

»»» Download «««

Install Instructions

If you haven't already, go to GoatCounter.com and create an account.

Download the Static Ultra GoatCounter extension using the link above.

Go to your site's root directory.

If you don't have an su-extensions folder, create one now.

Inside your su-extensions folder, create a goatcounter folder.

Upload or paste the contents of the downloaded goatcounter folder into your own goatcounter folder.

Open up your su-config.js.

Look for the this.EXTENSIONS block

If GoatCounter is your first extension, adjust it as follows:

this.EXTENSIONS = [ // GoatCounter { "id": "goatcounter", "classID": "GoatCounter", "files": [ "goatcounter.js", "extension.js" ] } ];

If GoatCounter is NOT your first extension, adjust it as follows:

this.EXTENSIONS = [ // SomeExistingExtension { "id": "whatever", "classID": "Whatever", "files": [ "extension.css", "extension.js" ] }, // GoatCounter { "id": "goatcounter", "classID": "GoatCounter", "files": [ "goatcounter.js", "extension.js" ] } ];

Go to the very very end of your su-config file, and add the following lines:

// GoatCounter var SC_GOATCOUNTER_ENABLE = true; var SC_GOATCOUNTER_ID = "https://YOURDOMAIN.goatcounter.com/count";

Replace YOURDOMAIN with your GoatCounter subdomain (NOT your Neocities one lol).

Go to the top of your su-config.js, and increase this.SITE_VERSION.

And you're done!