404 error pages
Catch broken links by sending a 404 custom event from your theme or the WordPress plugin.
WordPress
PureMetrix Analytics can send a 404 event whenever a “page not found” page is shown. Turn this on in the plugin settings.
Other stacks
puremetrix('404'); To count 404s like a goal, add this event name under Goals.
Verify
- Open https://app.puremetrix.org and check that the labels there match this guide.
- After any change to the snippet, visit your site once in a private window to send a test pageview.
- If numbers look wrong, check the domain and public key, the Free-plan limit, and whether bots or user roles are excluded.