TapCub is live — analytics, insights and live chat, free on one platform
Help center

How do I track form submissions?

Three ways to count form submissions in TapCub: turn on the form submit event, use a thank-you page goal, or send a custom event when the form succeeds. What each records and which to choose.

Product analytics1 min readLast updated Nov 4, 2026TapCub teamPart of Autocapture and the AI event inbox

Still have a question?

Could not find it? A person reads every message, usually within a few hours on business days.

Chat with us

Short answer

Add data-forms="true" to the TapCub script tag to record every form submit with its id, name and action (never field values). For only successful submissions, use a thank-you page goal or send a custom event when the server accepts the form.

Three ways

MethodSet-upBest when
Form submit eventAdd data-forms="true" to the script tagYou want every form counted with no code
Thank-you page goalA page goal on the URL shown after sendingThe form redirects to a confirmation page
Custom event on successCall tapcub.track() when the server accepts the formYou need only successful submissions

Form submit event

Form tracking is off by default. Turn it on by adding data-forms="true" to the script tag:

<script defer src="https://static.pathclue.com/client.js" data-site="YOUR_SITE_KEY" data-forms="true"></script>

Each submit is recorded as a form submit event (__form) with the form's id, name and action. Field values are never stored. Give each form a clear id or name so the rows are readable in Web analyticsEvents.

If you use autocapture, the same switch is also in the autocapture card under Web analyticsConfigurationSDK code.

Thank-you page goal

If the form sends people to a page such as /thanks, create a page goal on that path in Web analyticsGoals. This counts only completed submissions, because people reach the page after the form is accepted.

Custom event on success

A submit event fires when the browser submits, even if the server then rejects the form. To count only accepted forms, send an event in your success handler:

tapcub.track('lead_submitted', { form: 'contact' });

Do not put what people typed, such as names or email addresses, into event properties.

Confirm it works

Do the action yourself on the live site, then open Web analyticsRealtime: the event appears within a few seconds. Totals and properties are in Web analyticsEvents.

See also: form analytics, track button clicks and micro-conversions.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics