Php and JavaScript

Is it possible to Track Users with PhP and extend these Informations (with Resulution,Plugins … ) wen JavaScript is enabled?

Yes, using the tracking API Tracking API - Analytics Platform - Matomo

What should I do?
Wen i use the Tracking-Api and JavaScript I get 2 Visitors per page request. One with Plugins (by JS) and one without (by php).
I want to Track every page reqest with php and add the JavaScript to every Document. Wen the JS is executed it should update the Visit which Tracked by PHP.