Set User ID not working fine

Hi There,

I am using 3.14.0 Matomo version. I have followed the below link and edited the JS code to set the user id

https://developer.matomo.org/guides/tracking-javascript-guide#user-id

I see it is not working as expected.

I see the <nb_users> is not updated, when I derive using the below url, I am trying to fetch the active users

http://localhost/matomo/index.php?module=API&idSite=1&format=xml&method=VisitsSummary.get&period=day&date=today&time=currentTime&token_auth=37fe8388349403c1aa383476b9bf5836
Kindly help me with this