Google Ads Conversion Pixel in forms

You know what would make things sooo much easier? The ability to trigger a google ads conversion when a hubspot form is submitted.

Literally all of our marketing is targeted towards form completion. I can’t imagine we’re the only ones… and we don’t use a thank you page, so we can’t trigger the coversion from there. Triggering right from the form seems like a no braniner!

Yes, I agree with @SSchechner . The Ads Events are leaving a lot open! So I ended up needing to create a new Conversion event in Google Ads altogether because even when a contact submitted their first form, which marks them as a lead, it wasn’t firing the conversion.

So here’s the script I used when you don’t redirect a form submission:

<script>
// Built by Image in a Box - HubSpot Partners since 2015
// Simple Trigger on Submission for HubSpot
(function(){
	function run() {
		document.getElementsByClassName("actions")[0].getElementsByClassName("hs-button primary large")[0].addEventListener("click", function (event) {
			setTimeout(triggerEvent, 100);
		});
	}
	setTimeout(run, 500);
	function triggerEvent() {
		//Trigger Event like gtag / fbq
	}
})();
</script>