Deploy GoatCounter


GoatCounter is an open-source web analytics platform that is free for non-commercial use and available as a hosted service or self-hosted app. It respects the user’s privacy and has a simple, easy-to-use interface. In order to deploy GoatCounter on Render, you can either use the One-Click Deploy button or follow the Manual Deploy steps.

One-Click Deploy

Click Deploy to Render below to set up GoatCounter on your Render account.

Deploy to Render

Then, on the deployment dashboard, enter values for the GC_USER_EMAIL and GC_PASSWORD environment variables to create your GoatCounter account.

That’s it! Once the service is deployed, you can find the access URL on top of your service dashboard. Go to your https://goatcounter-xyz.onrender.com address, log in using the credentials you just provided and start using GoatCounter on Render!

Manual Deploy

Create a Database

Create a new managed PostgreSQL instance on Render. The database should be up in a few minutes; wait for it to go live before moving to the next step.

Note your database internal connection string; you will need it later.

Deploy GoatCounter

  1. Fork render-examples/goatcounter on GitHub or click Use this template. Then, give Render’s GitHub app permission to access your new repository.
  2. Create a new Web Service on Render with your new repo. Make sure the Environment is set to Docker and pick a name for your service.
  3. Add the environment variables below under Advanced and click the Create Web Service button at the bottom of the page.

    KeyValue
    DB_CONNECTION_STRINGinternal connection string from your newly created Database
    GC_USER_EMAILyour email (it will be needed to log into GoatCounter)
    GC_PASSWORDyour password (it will be needed to log into GoatCounter)

That’s it! Your GoatCounter instance will be available on your .onrender.com URL as soon as your first deploy is live. Visit that address and start using GoatCounter!

GoatCounter Welcome Screen