Example: Debugging Broken Events Using PP API + Python
Markus Baersch
No GA4!
No GTM!
… not even
a custom
template!
Broken Events: only a few … but why?
Broken Events: how to find them?
Broken Events?
What if I do not have broken
events?
Use this for:
●alerting when a big fish
filled out a form
●get instant info about $$$ sales
●specific website errors
●automated reporting
… without exposing Webhook API
keys and other stuff in the browser.
Step 1
API credentials
●Click your login email address
●Select API keys
●Create a key & copy values
Slack app (optional)
… or use Mailgun
Step 2
●https://api.slack.com/messaging/
webhooks
●Copy webhook URL
hooks.slack.com/services/xxxx/yy
yy/zzzz
API
Debugger: streams of
sessions & logs
(and sooo much more)
developers.piwik.pro/en/latest/data_collection/
api/tracker_debugger_api.html
Boooooooo
! worst joke
ever!
Quick Start: use a Colab notebook (or Apps Script)
Cloud Run ?????? Function
Slack: Receive messages, debug & take action
Slack: another example
Slack: … and another one
Trigger: Use Cron, GCP Cloud Scheduler, Zapier, Make… or Apps Script ;)
??????
??????
Not a GCP fan?: Use Apps Script for everything if you like (not just broken events!)
Apps Script: Store in spreadsheet, send emails and / or Slack
and Google Sheets?
Why Apps Script
●report consolidation
●easy access to specific data
●a better way to feed
Looker Studio?
Done ;)
Get the code!
Cloud Function +
Apps Script example +
(some) documentation
github.com/mbaersch/
piwik-pro-broken-event-check
er
Getting started: Colab notebooks for Piwik PRO reporting basics
“Full Course”
markus-baersch.de/
pp-api-notebook
Intro, Getting Report Data,
Transformations, Data Viz,
Create PDFs, Automate,
Batching & more
30min Starter
markus-baersch.de/
pp-api-starter
Intro, Using Python, Get
Report Data, Simple Plot
… just to get started
Matomo?
markus-baersch.de/
matomo-api-notebook
Mix of Realtime Alerting &
Reporting Demos in one
notebook
https://piwik.pro/piwik-pro-day/
Thank you! :)
markus-baersch.de/bsky
Random ad,
totally unrelated
“Missing Manual”
(focus on ssGTM)
markus-baersch.de/gtmbook