Skip to main content
Connect your website with one installation path. Select the intended store, then open Bily > Settings > Apps > More settings > Install tracking. Choose your site’s technology and copy the complete script or SDK snippet, including every query parameter and encoded character.
1

Install Bily once

Use the raw script for plain HTML. Use @bilyai/js for browser application frameworks.
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 ready() only for an explicit load check.
verify-bily.ts
Complete the verification checklist before you release.

Continue with your framework

All frameworks

React Router

Next.js