Matomo is not collecting data

Matomo Version: 4.6.2

matomo application server:
CentOS Stream release 8
Total Mem: 7953708 kB
PHP Version: 7.2.24

matomo Database server:
CentOS Stream release 8
Total Mem: 7953708 kB
MySQL Version: 8.0.26

We’ve updated piwik 2.17.1 to the latest version (4.6.2).
we updated the OS, we updated PHP (7.2.24), we updated MYSql (8.0.26).
It is working perfectly, but it is not collecting the visit data (Tracking).
Anything we’ve forgotten? ? ? We have the data collected until the piwik update.
Any idea ? ? ?

Please share the Matomo tracking code…

Something is missing… :wink:

Please click “edit this answer”. The tracking code is not showing on the screen. I do not know why.

I cannot edit the answer of others.
Please add the code surrounded by lines of ```:
Your code...

<!-- Matomo -->
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  (function() {
    var u="https://URL/piwik/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '5']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
<!-- End Matomo Code -->

I managed to enter the tracking code now

I consider your URL is the good one… :wink:

Did you check the site ID is the good one?

Can you check the HTTP requests to your matomo server in the network tab of your browser developer tool (F12)?

Thank you all.
The problem has been fixed.

We were inserting two monitoring tags within the same site.

Thank you for your time. . .