How to Install Google Ads Conversion Tracking on WordPress
A step-by-step tutorial on setting up tracking for form submissions.
How to Track ROI: Adding a Google Ads Conversion Tag to Your WordPress Contact Form
Tracking your return on investment starts with capturing every lead. Here’s a step-by-step guide to add a Google Ads conversion tag to your WordPress contact form—complete with plugin-specific instructions and verification steps.
1. Set Up Your Google Ads Conversion Tag
- In Google Ads:
- Go to Tools & Settings > Measurement > Conversions.
- Click the “+” button to create a new conversion action.
- Enter details (e.g., category: lead, source: website) and save.
- Copy your unique conversion tag code.
2. Add the Tag to Your WordPress Contact Form
For Contact Form 7:
- Go to your WordPress dashboard > Contact > Contact Forms.
- Edit your form. On the “Additional Settings” tab, add this line (replace
yourfunction
with a relevant name):on_sent_ok: "yourfunction();"
- Add your Google Ads conversion code to your theme’s footer (Appearance > Theme Editor > footer.php) or with a plugin like “Insert Headers and Footers.”
- In the JS function you define (referenced above), trigger the conversion event.
For WPForms:
- In your dashboard, go to WPForms > All Forms and edit your form.
- Go to Settings > Confirmations.
- If you redirect to a “Thank You” page, place the conversion code on that page.
- Alternatively, use a plugin to inject the code after successful submission.
3. Verify Your Conversion Tag
- Submit a test entry on your contact form.
- Use the Google Tag Assistant or Google Ads Tag Diagnostics to confirm the conversion fires correctly.
- Check your Google Ads conversion dashboard for successful events.
Tips:
- Always back up your website before editing code.
- Use plugins like “Google Tag Manager for WordPress” for easier, safer tag management if you’re not comfortable with code.
Summary:
By carefully placing your Google Ads conversion tag on your WordPress contact form, you can accurately track leads and run more effective, ROI-focused ad campaigns.
Here’s your article with clearer formatting for readability:
Track ROI on WordPress Contact Forms with Google Ads Conversion Tag
Accurately tracking ROI starts by measuring which inquiries come from your ads. Here’s a quick guide for adding a Google Ads conversion tag to popular WordPress contact forms—so you can count every lead.
1. Set Up Your Google Ads Conversion Tag
- In Google Ads, go to Tools & Settings > Measurement > Conversions.
- Click the + New Conversion Action and fill in the details (e.g., select “Website,” then “Lead”).
- Follow Google’s prompts and copy the conversion tag code provided.
2. Add the Tag to Your WordPress Contact Form
For Contact Form 7:
- Go to Contact > Contact Forms in your WordPress dashboard.
- Edit your form.
- Under “Additional Settings,” add:
on_sent_ok: "yourFunctionName();"
- Add your Google Ads conversion code either:
- Globally via a plugin like Insert Headers and Footers, or
- Directly in your theme’s footer (not recommended for beginners).
- Inside your custom JavaScript function, trigger the conversion.
For WPForms:
- Go to WPForms > All Forms and edit your form.
- Go to Settings > Confirmations.
- Redirect to a “Thank You” page and place the conversion tag code there,
OR
Use a plugin to insert the code after successful submission.
3. Verify That the Tag is Working
- Submit a test form entry yourself.
- Use the Google Tag Assistant browser extension or Google’s Tag Diagnostics to confirm that the conversion event fires.
- Check your Google Ads dashboard to confirm the test conversion is recorded.
Tip:
Consider using the free “Google Tag Manager for WordPress” plugin for an easier, code-free experience.
Now you’ll be able to measure every lead and understand exactly which channels deliver the best ROI.