How do you see that it is not working?
Can you check serverside if you encounter any error (log file?). Check also on Matomo error log file…
Can you share them?
If you track cookieless and on a subdomain of your website, you’ll be able to get more accuracy. Also you mentioned tracking serverside. This prevents the effect of ad blocker and privacy tools.