How to use "ua" in "Tracking HTTP API"

I have device identification problem when sending “GET” using Tracking HTTP API.

Could someone send me an example of how I can identify the device?

My code looks like this:

You have to force identification, example:

…/piwik.php?idsite=1&rec=1&_id=10950379000154&res=1280x1024&new_visit=1&token_auth=XXXX&cip=XXXX&ua=Windows 10


ua is the User-Agent HTTP header of the user: User-Agent - HTTP | MDN

Matomo uses DeviceDetector to detect things like OS, Browser, Brand, etc. from it: GitHub - matomo-org/device-detector: The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.

You can try it out on my website: