Matomo proxy server

I try to hide my code for analytics using PHP file and hide also URL as it is direct public URL for Matomo analytics login page.

I try to solve in the following way:

    var u="//HIDEURL";
    _paq.push(['setTrackerUrl', u+'manalytics.php']);

Need help how to solve HIDEURL and manalytics.php.

Did you take a look at this:

I see those links. Which PHP file is exactly needs to be placed on server as there are many complex connections or there is any support tutorial like VIDEO. It is also an issue with the security. How is it possible Matomo does not support such control by default due to crucial security?