Javascript tracker

Hello all,

I have been doing some reading on Matomo and it’s an awesome piece of creation. After doing some exploring, I found that I would have to have an open port in order to use the javascript client (which in this scenario is not allowed). If my Matomo instance is sitting behind a firewall, is there anyway to connect the javascript tracker to a homemade api and push all the tracking all though the webrequest from our app to our matomo istance? I also saw the document for Tracking HTTP API. Thoughts, questions, comments?