Woo Listings for GTM4WP self-updates
Disable Google for WooCommerce (Google Listings and Ads) from embedding Google Ads on a site using Google Tag Manager (through GTM4WP)
by Abundant Designs · github.com/robertstaddon/woo-listings-gtm4wp · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/robertstaddon/woo-listings-gtm4wp/archive/refs/heads/main.zipShips its own WordPress updater (Update URI header), so new versions show up under Dashboard → Updates.
Stops Google for WooCommerce from printing its own Google Ads tag when GTM4WP is already outputting a container.
Connecting an Ads account makes Google for WooCommerce store a conversion action and then add a direct gtag.js snippet. That snippet does not go through Google Tag Manager or a first-party tag gateway. This plugin returns true for the woocommerce_gla_disable_gtag_tracking filter while all of the following are true:
- GTM4WP is active
- a container ID, or a custom loader path, is saved
- container placement is not Off
The Google Ads connection, product feed, and Merchant Center settings are unchanged. If GTM4WP is not outputting a container, the Google for WooCommerce tag is left in place.