Hi,
there are always a few broken events (typically 1 or 2%) in the breakdown by type whenever I check my “Actions this month” under “Account → Subscription”. And I never was lucky to find one in the Tracker debugger when I filter for broken events in the last 6 hours. It would be great if there was something like a log for the last x broken events in order to debug and fix them, even if only a few might occur. I failed to find data about broken events using the API. And even if I could access the number of broken events there, I would still not get samples of raw broken event requests.
Any idea how to catch those rare errors?
best,
Markus
1 Like
It’s a good feature request and I’m pretty sure I’ve seen it before. I’ll file another one anyways.
If you don’t see the broken event in Tracker Debugger of any of your Piwik PRO sites then it could be that the tracking request doesn’t contain the site UUID and therefore ends up in neither of those. I think this case is also in our backlog.
When it comes to catching regular broken events that are simply appearing outside of your working hours - you could use some kind of an automation tool (e.g. n8n, Zapier, Make) to poll the debugger API every few hours.
I’ve encountered this exact case before. I’ve used n8n for data polling, extraction and transformation and then pushed a notification to Slack. Got a video tutorial on this but never got to the point of uploading it
.
Not an ideal solution for sure but gets the job done.
1 Like
I just tried to quickly build something like that and used the event_type 8 for goal conversions in order to see what I can get from the stream of sessions.
But as it seems, the filter for event_type does not really work. Even if I set a limit of 1 and a filter for only sessions with goals and then list all events of the first session received, I seem to get sessions without a goal conversion? How could that even be possible?
However, if I catch a session with a goal conversion, extract the uuid of that certain event and then try to query the stream of logs for that specific event, the response is a 500.
I give up for now 
Update: solved using the API and a scheduled GCP Cloud Function, waiting for Slack to tell me what’s wrong with those events
. Thanks for the idea!
Hi!
I have a similar issue for one of my sites. There are always broken events (5% of my total actions), but no matter what time of day I check the last 6hours in the debugger I can never spot a broken event.
Can you give me a more detailed explanation of how you have fixed this?
Thanks!
Alex
my case is somewhat special because I caused the problems myself, sending illegal combinations of things from my own custom endpoint. If you need to pinpoint the events, this might be useful: GitHub - mbaersch/piwik-pro-broken-event-checker: GCP Cloud Function for checking Piwik PRO Debugger API for broken events and send debug info as Slack notification · GitHub . but i am sure you have to update the code in order to make it work as a cloud run function now, so maybe the apps script version is the better choice.
But_ it only helps with catching an event. solving the problem is a completely different thing that depends on the source. In my case, I could control it. Hope you find something to avoud those events, too.
best,
Markus