tag and click Save
In script tag I added this code: Shopify.onItemAdded = function(line_item) { console.log(line_item.title + ' was added to your shopping cart. To be clear, there are no other values available for the event key. Don’t worry, we’ll explain this further so keep on reading. Introduction to Script Tags (Updated) 21:14. I suggest you experiment with this API because like we said before, you can do almost everything with script tag API.But there’s always a downside with this.Everything will only load once the whole document is loaded. It might seem a little confusing especially if you’re familiar with the other type of script tag which is enclosed with angle brackets (also known as