Set up an action recorder. Click on the tracking code and copy the unique code. Go to admin panel -> appearance -> editor -> paste the code under . Click save. Enter the URL of your store and click verify. Click on add-to-cart under action name. Select attribute. Click save.