Add custom onClick action to the widget element

Hi,
I would like to add a custom onClick action for various elements on my page, but there is no option for that in editor. I also can’t do that manually(via Javascript), because I can’t access individual elements in widgets - can’t set it’s class or ID(#wixShoutoutWidget for example).
Is there any possible solution for this? How to access individual elements in widgets via Javascript? Or is there an easier way to add custom Google Analytics event for any single element on my page?

Thanks

You can embed Google Analytics using the Track & Analyze feature . You cannot access widgets using Wix Code. For further questions about this feature, please contact Wix Support team as they know best about this feature.

Best,
Tal.