Skip to main content
For a Shopify-hosted storefront, follow Install Bily on Shopify to connect the app and activate its theme embed. For other websites and custom frontends, 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.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 ready() for an explicit runtime-initialization check, not as a destination delivery receipt.
verify-bily.ts
Complete the verification checklist before you release.

Continue with your framework

All frameworks

React Router

Next.js