Adding code for Facebook Pixel

Hello,

I have a question that is an extension of this thread. How do you setup a FB pixel in Hubspot so that it fires when someone clicks submit on the opt-in form?

Thanks in advance.

Rich