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.The browser script also records supported client-side navigation automatically. Do not add manual router page-view calls.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() for an explicit runtime-initialization check, not as a destination delivery receipt.verify-bily.ts