Skip to Content

Analytics

trackVisit() is an optional helper for TaskOn conversion analytics.

API

trackVisit(loginType?: AuthType, account?: string, isDev?: boolean): Promise<boolean>

Usage Patterns

Anonymous page view:

import { trackVisit } from "@taskon/embed"; await trackVisit();

Known user:

await trackVisit("Email", "[email protected]");

Development/staging:

await trackVisit("WalletAddress", "0x1234...", true);

Best Practice

  • Trigger once on host page load
  • Do not block rendering on analytics failure
  • Treat return value as telemetry success/failure only
Last updated on