How to use SetUserId function

Hi

I am new to Piwik an i want to set the userid through the setuserid when the button click event is triggered , But the Userid is not getting set . please help .

Regards
Narmada

Did you already read documentation about user-id?

how to pass user id through setuser id function? When i used the same format as that of what is given in documentation,my page is not recordered.

Hi @HINDHUJA_S,

How exactly are you using the function?
When it is not working, do you get an error in the javascript console of your browser?

Should i need to implement userid code in the login page alone or in all pages?