Hey all,
I think I created a funky little function with the help of Supermetrics, to get alerts whenever a 404 response happens on the site (more or less).
How this works is:
- GA4/GTM: You need to have an event that tracks whenever a user visits a 404 page - you can set this up through GTM or GA4 itself
- Supermetrics: You pull your 404 data into a sheet thanks to supermetrics
- Apps Script: Thanks to a script you install an alert whenever a 404 happens (e.g. every day, every 7 days, every month). You receive an automated email in your inbox whenever a 404 has happened in your chosen timeframe.
The email looks something like this:
You can find the details on how to set this up, plus the needed code for apps script, here:
It’s seriously very simple and will help your to stay on top of 404 issues.
Be aware of course that if a user doesn’t accept consent, you won’t know when they have visited a 404 page! It does take a very good part of users though and outputs interesting results.
For any questions feel free to reach out :)
Marouscha