How can I configure piwik to track requests against the load balancer public url instead of one of the servers the contains the web app is that is being used but is not a public url

The server that I am trying to track is behind a load balancer and piwik does not track any url requests to the load balancer public url but only directly to a server that is behind the load balancer which is not a public url and contains the piwik tracking code.
How can I configure piwik to track requests against the load balancer public url instead of one of the servers the contains the web app is that is being used but is not a public url.

If you in the JS the URL of the webserver hosting the piwik.php file and all other piwik files, it should work as expected…