Onclick Event Tracking Google Analytics WordPress Visual Composer Plugin

Solution:

Looks like you want to add this tracking code on a CTA button in Visual Composer. There is this Advanced on click action option that Visual Composer provides. You can use that. It is fairly straight forward. Check out the following screenshot.

EDIT: This solution is tested on Visual Composer version 4.12, may not work if you have an older version