Facebook Ad Integration for Conversions

How would someone add/integrate a Facebook Ad integration within their sites to track conversion rates? I have an ad on Facebook, however, Facebook requires that you track on your web site. I figured out I can put the additional code to the header of the page - however how would i attach the following script to the submit button or content within the page? Thank you.

Example:

Add To Cart

--- this is where i would induce code need to add an event to the button handler.
2 Likes

Did you ever get any answers? I need to do the same thing but for Google Ads… I can’t seem to figure out how/where to add a tracking script to the Submit button on a modal.