How to get item/product id using javascript inserted by Snippet API

Using the javascript inserted into Square Online page through Snippet API, how do I get product or item id, as well as variant id if there are multiple variation of a product?

:wave: Sorry for the delay. With the Square Online Store the item ID or item variation ID isn’t available on the page with the Snippets API. :slightly_smiling_face:

Hello @Bryan-Square, If it’s not possible to get information of a product using injected javascript through Snippets API then how can developers build UI elements that work for that product/item such as display bulk discount, product recommendation, etc?

I’m very interested to hear your thought on this.