More in Product analytics
- Autocapture and the AI event inbox
- Build a funnel that explains drop-off
- Identify users across web, app and mini-programs
- What is autocapture, and how does it work?
- How do I review and accept events in the inbox?
- What are unplanned events, and how do I manage them?
- When should I use a funnel instead of a goal or path?
- How do I build a funnel?
- How do I read where a funnel drops off?
- What is identified mode, and should I turn it on?
- How do I call login to identify a user?
- How is one person merged across devices?
- How does identity work on apps and mini-programs?
- How do I track clicks on outbound links?
- How do I track file downloads?
- How do I track form submissions?
- How do I track button clicks?
- How do I create a heatmap?
- How do I track scroll depth?
- How do I track ecommerce purchases and revenue?
- How do I set up goals and track conversions?
- How do I query my data with SQL?
- How do I create a custom metric?
- How do I analyze accounts with groups?
- How do I connect AI agents with MCP?
- How do I ask the AI assistant about my data?
- How do I create user segments?
- How do I run an RFM analysis?
- How do I record and watch session replays?
- How do I analyze user paths?
- How do I build a retention report?
- How do I analyze how an event is distributed?
- How do I create a tracking plan?
- How do I view a user’s profile and activity?
- How do I read the lifecycle report (new, returning, resurrecting, dormant)?
- How do I compare attribution models for a conversion?
- All guides in this category
Still have a question?
Could not find it? A person reads every message, usually within a few hours on business days.
Chat with usShort 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
$,_ortc_; 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
| Limit | Value |
|---|---|
| Properties per event | 20 keys |
| Key length | 50 characters |
| String value length | 200 characters |
| Value types | String, 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.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.