google / google/site-kit-wp

Console errors with Enhanced Conversion Tracking and Google Ads on a site with WooCommerce

Open
#9,535 1 comment 0 reactions 0 assignees View on GitHub
Module: Ads Module: Analytics Type: Support
Dominant language
JavaScript
Stars
1.4k
Forks
383
Avg merge
4d 12h
Merged PRs (30d)
80

Description

## Bug Description

As reported by [a user in the support forums](https://wordpress.org/support/topic/checkout-jquery-problem), various WooCommerce console errors are appearing and impacting checkout behavior when Enhanced Conversion Tracking is enabled.

- Support testing recording on users site (with Enhanced Conversion Tracking enabled) - **errors**: https://share.zight.com/4guGXDP1
- Support testing recording on users site (with Enhanced Conversion Tracking disabled) - **No errors**: https://share.zight.com/o0uAKjly

## Potential workarounds
- Adding Enahanced Conversion Tracking via GTM (unconfirmed)
- Adding Google Ads via manual insertion or GTM (unconfirmed)

![Image](https://github.com/user-attachments/assets/6e032fcc-4d73-47b1-83c8-7331fce0dee8)

## Steps to reproduce

Unable to recreate on test sites so far, although in the users case the following steps to create may apply:
1. Set up SK on a site with WooCommerce
2. Activate the Google Ads and GA modules
3. Enabled Enhanced Conversion Tracking
4. Check your browser console log for errors or mis-formatting during checkout

## Additional Context

- SK 1.133.0
- [SH info from impacted user](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/edit#response=ACYDBNj7Xz8V-oqNnWPg7XkVTsYfpM2wRZ7zDoXAbh0SsFVEn00Ul0pPXwQkTFSPcmbXbpU)
- The user reported that the same occurs via troubleshooting mode, using the Health Check & Troubleshooting plugin. Only SK and WooCommerce active.
- This was discussed in a Support Engineering Sync, where we couldn't find any SK specific error. The console errors point to WooCommerce, with there possibly being configurations applied that is impacting behavior.
- The user is using Cloudflare, although the same occurs with this disabled

## Insights & Troubleshooting Checks performed

- [x] Health Check & Troubleshooting plugin check - User confirmed the same occurs (awaiting recording)
- [ ] Incognito mode
- [x] Checked users Site Health info, no identified causes
- [x] Confirmed no modification of Site Kit placed snippet
- [ ] User confirmed no ""Critical errors"" in their Site Health status
- [ ] Reviewed error logs

---------------

_Do not alter or remove anything below. The following sections will be managed by moderators only._

## Acceptance criteria

*

## Implementation Brief

* [ ]

### Test Coverage

*

## QA Brief

*

## Changelog entry

*

Contributor guide

Open the contributing guide

Research direction

Begin with the documented reproduction steps and compare the two linked support recordings on a WooCommerce test site with Site Kit's Google Ads and Enhanced Conversion Tracking enabled. Confirm whether the checkout console errors are reproducible and identify a Site Kit-owned scope before defining the fix; the issue names no files or tests and provides no acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.