Skip to main content
The browser SDK reads bq_id from the destination URL, stores it in a first-party cookie, and uses it when you track a lead or sale. The core package is framework-independent. Use it from Vue, Svelte, Angular, Astro client code, or plain browser JavaScript. React applications can use the dedicated provider and hook.

Before you start

  • Create a Biqli short link and enable conversions on that link.
  • Open Workspace settings -> Tracking.
  • Enable conversion tracking.
  • Add your website hostname.
  • Generate and save a publishable key beginning with biqli_pk_.
1

Install the package

2

Initialize the SDK once

3

Visit the short link

Open the conversion-enabled short link in a clean browser session. Its destination URL should include bq_id.Confirm the SDK captured it:
4

Track a lead

You do not need to pass clickId when the SDK already captured it. You may pass it explicitly when your application has a known eligible click.

Track a browser-side sale

Use server tracking when a trusted backend or payment webhook can confirm the event. A browser request can be blocked or interrupted when a tab closes.

Verify the result

  1. Deploy the page publicly.
  2. Select Verify beside its hostname in Tracking settings.
  3. Complete a test journey through the short link.
  4. Open Customers and confirm the click and lead appear under the expected link.
Browser code must use only a biqli_pk_... publishable key. Never expose a biqli_... workspace API key.