Configure an event to fire on button click

Im looking to figure out a way to trigger the initiate checkout pixel event when the buy now button is clicked on my product page.

Currently my ‘buy now’ button triggers the ATC pixel event when clicked but because i have coded the button to send customer directly to checkout, it needs to trigger the initiate checkout pixel event instead.

If anyone has any advice, please come forward