UserId from a Widget

Hello,

I’m currently developing a widget and I cannot find in documentation (and forum) how to access to “userId” information from a widget ?

Is it possible ?

Thanks in advance :slight_smile:

I’m curious if this is possible through Matomo’s widget API or if it requires accessing the user data through a separate method. It would be helpful to have a simple example in the documentation, especially for developers building custom widgets.