• Resolved Imagemustufajp

    (@mustufajp)


    I’m trying to track add to cart events for bundled products in Google Analytics 4. I’m using the plugin GTM4WP – Google Tag Manager for WordPress.

    GTM4WP emits add_to_cart events correctly for simple and variable products, but no add_to_cart event is sent for bundled products.

    I attempted a workaround by creating a click-based tag, but the bundle item details aren’t included in the items array, so GA4 doesn’t receive the component-level data.

    Question: How can I reliably send a GA4 add_to_cart event for bundled products (ideally with the bundle components in items[])? Is there a supported approach or hook in GTM4WP (or WooCommerce Product Bundles) to expose the child items on add-to-cart—especially on non-AJAX product pages?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Woocommerce Product Bundle Data layer’ is closed to new replies.