-
Monitoring User Interaction on Custom Error Page
I need to keep track of how many times those buttons are clicked. Just going by the links isn’t enough because they’re pretty frequent on our site. I’ve made sure each button has a unique label, which you can see in the code snippet below. I’ve set up a new event in my GTM tag where the action is {{click element}} and the label is {{click text}}. Ideally, I’d like to see every single button click on GA4. This is how I set up my GTM tag
Below is my current 404.php file for my child theme.
Snipped PHP Code
The buttons on my current 404 page look like this (pulled directly from the flatsome UX builder, hence the syntax):
Log in to reply.