# Google Ads Conversion Pixel in forms

**URL:** <https://community.hubspot.com/t/google-ads-conversion-pixel-in-forms/52020>\
**Category:** HubSpot Ideas\
**Tags:** ads\
**Created:** [February 23, 2022, 3:29pm UTC](https://community.hubspot.com/t/google-ads-conversion-pixel-in-forms/52020 "2022-02-23T15:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSchechner](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@SSchechner](https://community.hubspot.com/u/SSchechner)\
**Post date:** [February 23, 2022, 3:29pm UTC](https://community.hubspot.com/t/google-ads-conversion-pixel-in-forms/52020/1 "2022-02-23T15:29:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [May 7, 2022, 10:40pm UTC](https://community.hubspot.com/t/google-ads-conversion-pixel-in-forms/52020/2 "2022-05-07T22:40:03Z")

</div>

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:

```lia-code-sample
<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>

```
