TraceIQTraceIQTraceIQDocs
  • Welcome
  • Quickstart
  • SDK methods
  • Configuration
  • Autocapture
  • Self-hosting
  • JavaScript SDK
  • Flutter SDK
  • React Native SDK
  • Node.js SDK
  • Python SDK
  • Swift SDK
  • Kotlin SDK
  • Rust SDK
  • PHP SDK
  • Web analytics
  • Session Replay
  • Insights
  • Funnels
  • Retention
  • Cohorts
  • Feature flags
  • Experiments
  • Surveys
  • Synthetic monitors
  • Alerts
  • Dashboards
  • Public sharing
  • API performance
  • Source maps
  • Logs
  • Revenue
  • Short links
  • Webhooks
  • Data export
  • Achievements
  • Reserved events
  • Feature guide
  • Server-side ingestion
  • CLI
  • MCP server

Short links

Short links redirect from /l/<slug> to any URL and record each click as a $link_click event in your project. Create them on the Short links page, or from an MCP client with create_link.

What a click records

  • Properties — linkId, slug, title, destination, referrerHost, and any utm_* tags set on the link.
  • Device — browser, os and deviceType, read from the user agent.
  • Location — country, region and city. The IP address itself is not stored for link clicks.
  • Identity — An anonymous id that is stable for one visitor and one day, so you can count unique clickers without cookies.

Clicks count toward your monthly event quota. Link-preview bots (Slack, X, Facebook and similar) and repeat clicks from the same visitor within 10 seconds are redirected but not recorded. If your quota is used up, links keep redirecting; only the tracking stops.

UTM tags

UTM tags set on a link are added to the destination when someone clicks, unless the destination URL already sets that tag.

Follow a click to a conversion

A click is recorded before the visitor reaches your site, so it isn’t yet joined to that person’s later events. To see which link drove signups, set UTM tags on the link and break your signup or purchase event down by utm_campaign or utm_source.

Archive, expire and delete

  • Archive — The link stops redirecting and shows a not-found page. Restore it any time.
  • Expiry — After the date you set, the link shows an expired page.
  • Delete — Removes the link and frees the slug. Past $link_click events stay in your project.

REST API

Manage links with a personal access token that has links:read or links:write. Endpoints act on your active project.

  • GET /v1/dashboard/links — List links with click counts and 7-day totals.
  • GET /v1/dashboard/links/:id?days=30 — One link with daily clicks, top referrers, countries and devices.
  • POST /v1/dashboard/links — Create a link: destinationUrl, plus optional slug, title, utmSource … utmContent and expiresAt.
  • PATCH /v1/dashboard/links/:id — Change the destination, title, UTM tags or expiry.
  • POST /v1/dashboard/links/:id/archive · /restore — Stop or resume redirecting.
  • DELETE /v1/dashboard/links/:id — Delete the link and free its slug.
bash
curl -X POST https://api.traceiq.run/v1/dashboard/links \
  -H "Authorization: Bearer tiq_pat_..." \
  -H "Content-Type: application/json" \
  -d '{"destinationUrl":"https://example.com/pricing","slug":"launch","utmSource":"twitter","utmCampaign":"launch"}'

Self-hosting

Links are served by the dashboard at /l/<slug>. Short URLs shown in the dashboard use SHORT_LINK_BASE_URL, falling back to DASHBOARD_URL, on the API.

Previous← RevenueNextWebhooks →