// ✅ Base Google Tag Manager dataLayer support for WooCommerce add_action('wp_head', function() { ?> get_items() as $item) { $product = $item->get_product(); $items[] = [ 'item_name' => $item->get_name(), 'item_id' => $product ? $product->get_id() : '', 'price' => $order->get_item_subtotal($item), 'quantity' => $item->get_quantity(), ]; } ?>

Main Menu