Exclude certain links for outbound tracking

Hello,

The way the onclick event is added to “a” tags is causing a conflict with a lightbox youtube video embed, causing it to not work properly.

Is there a way to exclude certain “a” tags containing a specific class or url to exclude these from adding the onclick event?

Thank you