I want to fire some analytics code when a comment has been successfully added (happy if its when submit is clicked and not after any approval, etc) and also when one of the share buttons is clicked.
Things like Contact Form 7 have a setting where you can add some JS for a specific hook (i.e. on_sent_ok).
Is there anything similar I can do for JetPack comments and Shares? I'm sure I'm not the only person who wants to be able to track this sort of thing.