To track conversions via Google Ads when users submit forms on your API and Contact pages in Webflow, you’ll need to add the Google Ads Conversion Tracking code using Webflow’s form submission event.
You’ll target your API and Contact page forms using JavaScript and Webflow’s native Webflow.push()
.
Add the following to your Page Settings > Footer Code section for both the API and Contact pages:
```javascript
```
Important:
Replace AW-CONVERSION_ID/LABEL
with the values provided by Google Ads for your conversion.
If you want to target only specific forms (e.g., by #id
or .class
), modify $('.w-form')
accordingly (e.g., $('#api-form')
, $('.contact-form')
).
You may also use Webflow’s built-in Form ID or class names to be more specific.
To track form submissions as Google Ads conversions, add the global site tag to your site, then include the event snippet via custom JavaScript on your API and Contact pages' footers. Ensure you've set up the correct conversion ID and label, and optionally target specific forms for granular tracking.