Tracking Options - Widget Linking to External Site

We are planning to add a widget to our community that would link to an external page with a survey. This widget will be used in multiple forums that are within the same sub-group ideally, rather than creating multiple widgets and hiding them from the other forums. 

I was curious if there is a way to add a line in the widget to track either which forum the user was in when they clicked this link, or even better, which user clicked this link. Basic identification would suffice. 

TLDR: Is there a dynamic field I can put into a widget to pass on to a survey outside of the forums? 



Added clarification at end.
[edited by: abarb at 5:39 PM (GMT 0) on Tue, Feb 27 2024]