I need to trigger some custom js script in Magento for following actions,
1) customer account creation (customer_register_success)
2) Add to cart action (checkout_cart_product_add_after)
3) Remove a product from cart
4) Successful checkout
For now, I have created a module to observe customer_register_success and checkout_cart_product_add_after events and it is working as expected.
But, I am struggling to trigger the custom script on the particular event, please let me know suggestions to trigger the script.
Thanks in advance!