How do I fire some code when the form is submitted?
There are 4 ways of getting conversion code or "pixels" to fire when a user completes your form:
1.) Recommended: Use our one-click integrations
If you need to fire a Google, Facebook, Google Analytics, Twitter Ads or Microsoft Advertising tag - we recommend using our 1-click integrations.
To do this, open up your form in the Growform builder and hit "Edit form settings" in the blue toolbar. Then, go to "Tracking & tagging" and follow the documentation for your chosen integration:

If you use lead disqualification, each of these integrations has a "qualified leads only" toggle, so disqualified leads don't fire your conversion tags.
2.) Add the code to your thank-you page, hosted on your own website or blog
Another perfectly viable option is to simply add the pixel code to your thank-you page. This option has the advantage of keeping your conversion code all in one place, and means you can maintain it on your own website or blog.
To implement this, open the step dropdown in the top-left of the builder and hit "Edit steps & endings". Add a redirect ending pointing at your thank-you page URL, and every user who completes the form will land there.
3.) Paste your code into "Custom HTML / JavaScript"
It's also possible to fire code from Growform. To do this, navigate to "Edit form settings" > "Tracking & tagging", and paste your code into the "Custom HTML / JavaScript" section - including the <script> tags. It fires the moment the form is completed.
There's a "Fire custom script for qualified leads only" toggle here too, if you're using lead disqualification.
This method is usually suitable for most implementations, but may come with a few drawbacks - under the hood, the code is firing inside an iFrame - so you may experience tracking issues using this method.
4.) Use Google Tag Manager
Finally, you can use a custom Google Tag Manager setup to fire tags.
This allows for a high degree of flexibility but is entering developer territory. If you go this route, note that Growform pushes growformFormCompletedQualified and growformFormCompletedDisqualified events to the dataLayer alongside growformFormCompleted, so you can trigger tags for qualified leads only.