Add the following settings to your settings.json file in the root Etherpad folder
settings.json
"ep_matomo": { "matomoSiteId": "YOUR_MATOMO_SITE_ID_HERE", "matomoHostname": "YOUR_MATOMO_HOSTNAME_HERE" }