How to get product ID from a buy button collection through pure Javascript?

New Member
1 0 0

I'm currently working on a shop on an external site so I don't have access to Shopify themes and such. Is there a way to get a productId from a collection created through the buy button?


Thanks so much in advance!