If you’re using the new GA tag format (which is actually Google Tag Manager, even if you haven’t set up Google Tag Manager … yeah), you’ll want to swap out the “ga” function with the following:

gtag('event', 'recipe_click', { 'event_category' : 'Recipe Cards', 'event_label' : '<?php the_sub_field('heading'); ?>' }

You can see if your event is being tracked inside “Real Time” > “Events” in GA.

One more thing to keep in mind: if you’re tracking something that is a “noninteraction event” (something happens, but the user doesn’t necessarily do something) you’ll want to tell the tag about it as well.

gtag('event', 'rum-page-scroll', {
'event_label': 'White Rum scrolled to Dark Rum',
'event_category': 'Rum Page Scroll',
'non_interaction': true
});