Webflow sync, pageviews & more.
NEW
Answers

How can I properly track form submissions on my Webflow site that come from Google Adwords? I have followed the steps provided by Google, but I am unsure about where to add the code and how to link it to the submit button. I have already attempted to add the code in the custom code section labeled "Inside tag". Can someone please help me with this?

To properly track form submissions on your Webflow site that come from Google Adwords, you need to implement the Google Ads Conversion Tracking code. Here's a step-by-step guide on how to do it:

1. Get your Google Ads Conversion Tracking code:
- Sign in to your Google Ads account.
- Go to Tools & Settings and navigate to the Measurement section.
- Click on Conversions.
- If you haven't set up a conversion yet, click on the "+ Conversion" button to create a new one.
- Choose the relevant options for your conversion and click "Create and Continue."
- On the next screen, you'll see the code snippet to track conversions. Copy it to your clipboard.

2. Add the code to your Webflow site:
- Open your Webflow project and go to the "Project Settings" section.
- Click on the "Custom Code" tab.
- Paste the Google Ads Conversion Tracking code in the "Inside tag" section.

3. Link the code to your form submit button:
- Navigate to the page containing your form in the Webflow Designer.
- Select the form element, usually represented by a "

" tag.
- In the right-hand panel, click on the "Settings" tab.
- Scroll down to the "Attributes" section.
- Add a new attribute called "onsubmit" and set its value to the Google Ads conversion tracking code.

Here's an example of how the attribute should look:

```html
onsubmit="gtag('event', 'conversion', {'send_to': 'YOUR_CONVERSION_ID/YOUR_CONVERSION_LABEL'});"
```

Make sure to replace "YOUR_CONVERSION_ID" and "YOUR_CONVERSION_LABEL" with the values provided by Google Ads.

With this setup, whenever a user submits the form, the Google Ads Conversion Tracking code will fire and register the conversion in your Google Ads account.

Remember to publish your site for the changes to take effect.

Please note that this method assumes you've already set up conversion tracking correctly in your Google Ads account. Double-check your conversion configuration to ensure that it matches the form submission you want to track.

Also, keep in mind that this integration may depend on your exact form structure, and you might need to adjust the code accordingly. If you're facing further difficulties, please provide more details about your specific form structure and code implementation, and I'll be happy to assist you further.

Rate this answer

Other Webflow Questions