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

How do I track custom events?

Send your own events with tapcub.track(name, props). The call, how to queue events before the script loads, naming rules, property limits and where the events appear.

Product analytics2 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

Call tapcub.track(name, props) once the script is loaded, or push onto window.__tcq before it loads. Use snake_case names up to 40 characters, up to 20 properties of string, number or boolean. Events appear in Web analytics → Events.

The call

Once the TapCub script is on the page, send an event with a name and optional properties:

tapcub.track('signup', { plan: 'pro' });

If your code might run before the script has loaded, push onto the queue instead. Queued calls are sent as soon as the script starts:

<script defer src="https://static.pathclue.com/client.js" data-site="YOUR_SITE_KEY"></script>
<script>
  window.__tcq = window.__tcq || [];
  window.__tcq.push(['track', 'signup', { plan: 'pro' }]);
</script>

A failed call never throws an error on your page.

Naming rules

  • Use snake_case, start with a letter, up to 40 characters, for names you register in the event catalog: signup, add_to_cart, video_play.
  • Do not start names with $, _ or tc_; those are reserved. Names starting with a double underscore are used by automatic events.
  • Do not rename an event once it is in use. The name is the key in your data; change the display name instead.
  • Use the same name for the same action on web, app and mini program, so cross-platform analysis can combine them.

Property limits

LimitValue
Properties per event20 keys
Key length50 characters
String value length200 characters
Value typesString, number, boolean

Longer names and values are cut in the browser; the event is still sent. Objects and arrays are not stored as values. Only add properties you will filter or break down by, and never put raw input text such as names or emails in them.

The collector drops an exact repeat (same visitor, page, name and properties) within one second, so a double click does not count twice.

Where to see events

New events appear in Web analyticsEvents with count, distinct visitors and a 7-day trend. To name, describe or hide them, use the definitions tab of All-platform analyticsDataEvent inbox. For breakdowns and formulas, use event analysis. Reviewing names is covered in how to review event candidates.

Amounts and orders

Send purchases and other money amounts from your server, not the browser, so a closed tab or blocker does not lose them. See the developer docs.

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: track button clicks and tracking plan.

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