I would like to track a button called “View All News” which appears in debug mode, but I can’t seem to see it in my reports.
I’ve set up a custom event (button click tracking via custom code), and it fires correctly in debug mode. However, no data appears when I create a report.
I only want to track this button on a specific page (see the widget condition).
If the event is fired correctly in debug view in tag manager it should be working correctly. To verify it I suggest you should use tracker debugger (if it’s available for you). If it’s not available, your session has to finish to be visible in the reports, otherwise it won’t be visible right away as it’s not yet processed and it’s still ongoing.
You can find it In Analytics module → Settings → Tracker debugger
Here you can find additional tutorial on how to verify if your tracking is setup correctly, maybe it will help you as well:
For custom events you can put whatever you prefer there, I like for example to add category to specific type of interaction, ie. onboarding, or app, or maybe I will use custom contact form 1. In action, I often define type of action - for example click, button click, step 1 completed if I’m tracking some complicated forms. Last one - event name - I use it to add another layer of definition for my custom event. So for example if I already have custom contact form - button click - I will use in event name confirm button as a value to know which button was clicked.
It’s good to apply some taxonomy and keep it because it will help you later with reporting and finding useful information in data.