Last updated 26 November 2026. By Paul Badarau.
Ida, a fictional developer, runs a pottery workshop. The contact form shows a thank-you line even when the server refused the message, and nobody writes to tell her.
- In the catch, call
Sentry.captureExceptionwith the error. A catch that only changes the page text swallows the failure, so Monitoring never sees it. An exception that escapes the catch is stored on its own once the SDK is running. - Create a named goal first. Owners and Administrators add goals. The collector refuses a name that is not already a goal. Look the form up inside
DOMContentLoaded. Callpostdeploy.track('message-sent')only after the server accepts. In this sketch,sendMessageresolves on that accept.document.addEventListener('DOMContentLoaded', function () { var form = document.querySelector('form'); if (form) form.addEventListener('submit', function () { sendMessage().then(function () { postdeploy.track('message-sent'); }); }); }); - Compare that goal's completions with the previous period, and with pageviews of the form page. Pageviews that hold while completions fall mean the page still loads and the accept path stopped. New Projects respect Do Not Track and Global Privacy Control, and both counts follow that rule.
Owners and Administrators get the new-issue email once per fingerprint, in a digest at most every 10 minutes, with at most 20 emails an hour and 100 a day per Workspace. A send still waiting after 6 hours is dropped. Viewers are not mailed. A form that stays broken sends no second email. If the form file never runs, there is no exception and no goal, while the deferred analytics snippet can still record the pageview. That split, pageviews present and completions absent, is the signal that the form code did not finish.
The product page for this is Monitoring.