1
Install Bily once
Use the raw script for plain HTML. Use
@bilyai/js for browser application frameworks.- Plain HTML
- Application SDK
Add the exact script once inside the global
<head>.index.html
2
Record each page once
The 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 the change.analytics.ts
3
Send your first event
Give your application events stable snake_case names.
analytics.ts
4
Confirm Bily is ready
The SDK queues calls while Bily loads, so normal tracking does not need to wait. Use Complete the verification checklist before you release.
ready() only for an explicit load check.verify-bily.ts