Talivia Docs
Talivia Docs
HomeDashboard
IntroductionInstallationGetting updates
Tracking overviewTracker functionsTracker configurationTrack eventsDistinct IDsTagsLinksPixels
Tracking

Track events

Track important user actions with HTML attributes or JavaScript.

Use custom events for actions that matter more than a page view: signups, checkout clicks, demo requests, external links, and activation steps.

HTML attributes

Add data-talivia-event to an element:

<button data-talivia-event="signup-click">Start free trial</button>

Add event data with data-talivia-event-* attributes:

<button
  data-talivia-event="checkout-click"
  data-talivia-event-plan="pro"
  data-talivia-event-location="pricing"
>
  Checkout
</button>

Talivia automatically reads these attributes on click.

Links

For normal links, Talivia waits for the event request before navigating when possible.

<a href="/pricing" data-talivia-event="pricing-link">Pricing</a>

External links, modifier-key clicks, and _blank links are not blocked.

JavaScript

window.talivia.track('invite-sent', {
  role: 'viewer',
});

Use JavaScript when the event depends on application state, form results, or a server response.

Event data tips

  • Use stable names like signup-click, not user-facing button text.
  • Keep numeric values as numbers when you want to compare them later.
  • Avoid sending personal information unless it is needed for payment attribution and allowed by your privacy policy.

Tracker configuration

Previous Page

Distinct IDs

Next Page