1. Quickstarts
  2. Matomo

Deploy Matomo

Matomo (formerly Piwik) is an open-source analytics platform that focuses on user privacy and data ownership. It is a free alternative to Google Analytics and is already used on more than a million websites.

You can host your own Matomo instance on Render in just a few minutes. Once it’s live you will be able to log in and get your JavaScript snippet that you can add to any website to get instant access to detailed, real-time analytics.

One-Click Deploy

Click Deploy to Render below to deploy Matomo on Render.

Deploy to Render

Manual Deploy

The rest of this document explains how to set up Matomo on Render manually.

Create a MySQL Database

Set up a new MySQL 8 instance on Render. Make sure to select the master branch when you create your database so it uses MySQL 8. The database should be up in a few minutes; wait for it to go live before moving to the next step.

You’ll need details from your MySQL private database service before you can deploy the Matomo web app.

Deploy Matomo Server

  1. Fork render-examples/matomo on GitHub or click Use this template.

  2. Create a new Web Service on Render and give Render’s GitHub app permission to access your new repository. Make sure the Runtime is set to Docker and pick a name for your service.

  3. Add the following environment variables under Advanced.

    KeyValue
    MATOMO_DATABASE_HOSTMySQL hostname from above (e.g. mysql-xyz1)
    MATOMO_DATABASE_DBNAMEMySQL database name
    MATOMO_DATABASE_USERNAMEMySQL database username
    MATOMO_DATABASE_PASSWORDMySQL database password
  4. Add a Disk under Advanced:

    Namematomo
    Mount Path/var/www/html
    Size20 GB Feel free to change this to suit your needs.

That’s it! Save your web service to deploy Matomo on Render. It will take a couple of minutes to start but future deploys will be much faster.

Your Matomo instance will be available on your .onrender.com URL as soon as your first deploy is live. You can configure it by going to https://your-subdomain.onrender.com and start using Matomo!

Matomo Welcome Screen