/** * Injects Google Ads conversion events via gtag.js for: * - Add to Cart (on single product pages) * - Begin Checkout (on the /checkout page) * - Purchase (on the /order-received/ thank-you page) * * These events are sent using gtag('event', ...) and include optional callbacks for debugging. * Make sure your Google Ads account has matching conversion actions for each event name. */ add_action('wp_footer', 'inject_google_ads_conversion_events'); function inject_google_ads_conversion_events() { ?>