We find it hard to add custom HTML related to visitor info(userId etc.) in visitorProfilePopup via plugins. Because it doesn't provide any postEvents with visitor info or plugin API to add custom item.
Supplying visitorData to Template.afterVisitorProfileOverview could solve this problem. Making visitorProfilePopup more customizable.
@gtbl2012 Thanks for you PR.
Depending on what you are trying to achieve, it might already be possible with a
VisitorDetails class. See https://developer.matomo.org/guides/visitor-log-and-profile
Thanks a lot, implementing ProfileSummary is better. I just missed that part.