Two tracking codes on one page

Google says that analytics are not set up properly. Apparently, there are two installations.
This is what they are saying:
Additionally: I would like to inform you that when I logged into your website. I found that there are two tracking codes. One are 35143626-1 which have not been implemented correctly, as the tracking code is found outside the head tag.

We have detected that the Google Analytics tracking code is outside of the <head> section on your website's page. This decreases the likelihood that the tracking beacon will be sent before the user leaves the page.
One of the main advantages of the asynchronous snippet is that you can position it at the top of the HTML document. This increases the likelihood that the tracking beacon will be sent before the user leaves the page. We've determined that on most pages, the optimal location for the asynchronous snippet is at the bottom of the section, just before the closing tag.