Hi,
no, it's not possible to integrate javascript in E-Mails, since most E-Mail clients don't support scripting. There might be exceptions, but generally speaking there is no option to achieve this.
But you can activate link tracking and tag your links (eg. with categories). Then you can setup the Campaign/Analytics integration and have the collected click-tracking data automatically transferred to Analytics.
Best regards, Tobias