How to setup google goals for popup forms?

My website has a CTA buttons. if i click “Request quote” button, it opens in a pop up window. After submission we will get a thank you page. Please let me know, how to setup goals in google analytics to know conversions? Should we use event ? please let me know the steps to do it ?