We can add a new server side diagnostic to help users verify and diagnose tracking code issues. The diagnostic would fetch the target site's HTML, find the tracking code and check whether it's ok.
Specific checks could include:
force_ssl = 1(or doesn't use
://if the target site is using https but for some reason matomo isn't).
It could also incorporate the "are there visits?" check that is done when displaying the dashboard. If the tracking code is there, but there are still no visits, we can say so giving the user more information they can use to diagnose & resolve their issue.