plugins – JS Event to Track WooCommerce Events


I have a tracking library that is implemented at the front end, I need to capture the woocommerce events such as ProductView, CartView, Add to Cart …etc, and push the data to the tracker.

What are the solutions for me?

Can I use something like this ?

jQuery('body').on('init_checkout', function(){
    console.log('init_checkout triggered');

If so where should I implement the code, I already enqueued a JS File to the footer.

Nethsara Siyum 9 months 2022-09-13T06:51:50-05:00 0 Answers 0 views 0

Leave an answer