Google ads conversion tracking

I have this code from google to track a conversion:

gtag(‘event’, ‘conversion’, {‘send_to’: ‘***’});

How do I get this to trigger on successful form submission with a bricks form?