This is a simple question. I did look in the documentation already but was not able to find the answer. I was able to set up Matomo fine with Nginx and MariaDB. I was just confused on how to connect my external Netlify website with my internal Matomo server. The server containing Matomo is on an internal network. The website that needs to be monitored is hosted on Netlify. I have added the script tags already. I was able to easily connect Matomo to a web server on the intranet (internal to the network) but not the one on Netlify.
The visitor of the website needs to be able to access the Matomo server to send the data there.
So if the visitor is on the internet, either you need to make Matomo accessible from the internet or use GitHub - matomo-org/tracker-proxy: HTTP proxy for Matomo's tracker API. This script allows to track websites with Matomo without revealing to your visitors the secret Matomo server URL.
This post was flagged by the community and is temporarily hidden.