I am not deep into analytics space, but I know from experience that the most popular ad blocker (ublock origin) will block the most popular self hosted analytics package (matomo).
The thing about blocking self-hosted analytics is that it's very easy to avoid being blocked if you want. You can just change the included tracker name, or request parameter names.