To install bing merchant center is required to insert this code on the header on the page and stract the product_id from woocomerce.
window.uetq.push('event', '', {'ecomm_prodid': 'REPLACE_WITH_product_id', 'ecomm_pagetype': 'product'});
Reading this post I saw that is possible to extract the product_id with php:
$product_id = $item->get_product_id(); // the Product id
My question is: how to extract the product id with JS to insert within a snippet code in header of the page?