Woocommerce Product Bundle Data layer
-
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_cartevents correctly for simple and variable products, but noadd_to_cartevent 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
itemsarray, so GA4 doesn’t receive the component-level data.Question: How can I reliably send a GA4
add_to_cartevent for bundled products (ideally with the bundle components initems[])? 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?
The topic ‘Woocommerce Product Bundle Data layer’ is closed to new replies.