Skip to content

add to cart event #906

@Coru89

Description

@Coru89

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions