Choose one installation path
Use the raw script tag for plain HTML. Use
@bilyai/js for JavaScript applications, React, and Next.js.- Plain HTML
- Application SDK
Add the exact script tag once inside the global
<head>.index.html
Let Bily record the initial page view
The installed browser script records the first
PageView automatically. Do not call track("PageView") during the initial mount.If your application changes routes without loading a new document, track each later route after the router commits it.analytics.ts
Verify loading
SDK calls queue before loading finishes, so normal tracking does not need to wait. Use Continue with the verification checklist.
ready() only when you need an explicit load check.verify-bily.ts