How to use piwik tracking from source forge project web space

My project is hosted on SourceForge. I am allowed to use PHP and install Piwik in the project web space, but I am not allowed to send any http requests from my php pages even to the same server. It means I can not use technique described in Tracking API - Analytics Platform - Matomo. In order to use piwik to track access to my own php pages I need to call piwik code directly from my php pages.

What is the best way to do it?

Any help is appreciated
Regards, Dimitry