Google Ads conversion tracking breaks after a WordPress theme update because the update wipes tracking code pasted into the parent theme. Conversion tracking is the system that counts purchases, form submissions, or calls as conversions for bidding and reporting. A new theme can also unload the custom PHP file that added the tag. The result is missing tags, mismatched URLs, and silent loss of conversion data.
Table of Contents
- How a theme update deletes your tracking code
- Why Google Ads stops counting conversions
- How to tell what kind of break you have
- How to restore tracking so it survives updates
How a theme update deletes your tracking code
Manually pasting the Google tag into a parent theme's `header.php` or `functions.php` is fragile. According to the Learn WordPress lesson plan, theme updates restore original files and delete those customizations, as explained in the basic child-theme lesson. WordPress loads only the active theme's `functions.php`.
The WordPress Developer Handbook explains that a child theme loads its file plus the parent's, so replacing the theme can unload custom PHP that injected tracking code. WooCommerce stores face the same risk. Hard-coded snippets also lose enhanced-conversion and consent handling when the theme changes.
Why Google Ads stops counting conversions
Google Ads website tracking needs two parts working together. According to Google Ads Help, it requires the global Google tag on every page plus an event snippet calling `gtag('event','conversion',{'send_to':'AW-ID/LABEL'})` on the conversion page, described in the website conversion setup guide. If the update removes either part, no conversion is sent.
The count drops to zero even while ads keep running. Redesigns cause a second failure mode. URL-based conversions fail when the conversion-page URL no longer matches, and tag-manager triggers fail when the thank-you page or form event changes.
How to tell what kind of break you have
Check the conversion action status in Google Ads first. According to the Google Ads troubleshooter, "Misconfigured" means conversions stopped entirely from a setup error or broken tag, while "Awaiting conversions" points to low traffic or a new action, as defined in the conversion-status troubleshooter. A "Misconfigured" label after a theme change points to removed code or a broken setup.
An "Awaiting conversions" label suggests the tag fires but rarely matches. Confirm by testing the live conversion action. Google directs advertisers to verify with Tag Assistant and GTM Preview, checking that the conversion and conversion-linker tags appear under fired tags, per the Tag Assistant verification guide. Test a real purchase, booking, or form submit, not just a page view.
How to restore tracking so it survives updates
Do not re-edit the parent theme. Restore tracking in a place updates will not overwrite, then revalidate before trusting Smart Bidding.
After the fix, run Tag Assistant again on the conversion action. Tag Assistant confirms firing, not correct value, currency, or duplicate counting, so check those settings in Google Ads before resuming automated bidding.
- Move custom code to a child theme instead of the parent theme.
- Use a dedicated tracking plugin or consent-aware integration for WooCommerce and lead forms.
- Use Google Tag Manager for conversion triggers, so page-design changes do not require theme edits.
You Might Also Like
- WordPress Maintenance: Google Sheets Integrations After Account Restoration: How to Test Permissions Before Resuming Sync
- WordPress Maintenance: Staging Tests After Cloud Account Recovery: Which Integrations Should Be Checked Before Production?
- WordPress Maintenance: Membership Sites Using Google Login: How to Review Legitimate Account-Linking Options




