I just finish install magento2.3.5-p2 with sample data,
I want to understand how to collect variant data of product being added to cart at minicart
The reason for this is to be able for me to push this data into Google Tag Manager event
Screenshot attached below on the part that I require to capture from.
I wanted to get only the configureable product variant selected which is "Size :S" and "Color: Blue"
I tried tracing the code and able to see that the minicart code are processed at here
But I am unable to understand how this code works and what is the code to write to get the configureable product variant selected data
Any help is kindly appreciated