Hi. We're using Retail Rocket and we want to see the variant ID reflect on the console in real time without refreshing the page. But it's not working and it's only getting the default variant ID of the product. It only works whenever we click another variant and refresh the page.
This is a snippet of the code in the console and we want to see the variant ID change in real time in console as we click another ID.