How to track the dynamic checkout button i.e. "Buy it Now" button in Google Analytics.?

I have two call-to-action buttons on the product details page. The problem is that only one triggers the “add-to-cart” event being sent to Google Analytics. It works correctly once the user clicks on “Add to cart”, but it doesn’t fire the data if a user clicks on “Buy it now”.

How do I fix this.?

Please help

P.S: It’s Unbranded type of dynamic checkout button.

Have you ever found a solution to this?

Greetings,

i’ve custom solution your tag will tracking Buy now/ checkout button without shopify plus plan.

thank you

Junaid