How to measure clicks on the checkout button using Wix stores

Hi

I want to measure how many people click on the checkout button on the cart using Wix stores. I’ve already connected to google analytics. How can I achieve this? I can’t attach a custom click event on the checkout page since this is an iframe.

Thanks!

You can add code to the masterPage.js back end file that checks if the url is the checkout page and runs the code to track how many times the checkut page is loaded.