Track User IDs where basic auth is used

Hi there,

I have a question regarding the User IDs (in case someone already has the answer): when a site is using basic http authentication and the username is the value of $remote_user (nginx) , how can I send the username to matomo when using JavaSript tracking?

Thank you