I want to track the number of button clicks in my coupon website. The button values are retrieved from custom fields created using the ACF plugin. I have a custom field total_clicks
. Every time when someone clicks the button, I want the value of total_clicks
to get updated.
How can I implement this with ACF and javascript?