What is the best way to trigger an add to cart event using BuyButton.js?
is it like this example? DOMEvents: {
'click .button': function (event) {
myAnalyticsLibrary.track()
}
or is there a way to listen to add to cart success?
Sorry, i went through the documentation, but it's not clear to me. Thanks!
What is the best way to trigger an add to cart event using BuyButton.js?
is it like this example? DOMEvents: {
'click .button': function (event) {
myAnalyticsLibrary.track()
}
or is there a way to listen to add to cart success?
Sorry, i went through the documentation, but it's not clear to me. Thanks!