Find your installation path
Choose a guide
Plain HTML
Add the exact browser script to every document through one shared layout.
Vanilla JavaScript
Initialize from a browser entry module and connect your router callback.
React Router
Mount one tracking component inside the router you already use.
Next.js
Cover App Router, Pages Router, or both with one shared component.
Vue
Wait for the initial route, then observe successful navigations.
Nuxt
Start Bily from one client plugin after the first page finishes.
Svelte and SvelteKit
Use the browser entry for Svelte or the root layout for SvelteKit.
Angular
Subscribe once to successful Angular Router navigation.
Astro
Support full document loads and optional client-side transitions.
React Router framework mode and Remix
Add one component to the root route without replacing its document shell.
Keep one contract everywhere
Every framework follows the same rules:- Copy the complete tracking URL from Bily > Settings > Apps > More settings > Install tracking.
- Let
@bilyai/jsown the loader unless a framework guide reserves one script element for the SDK to reuse. Never add a second unmanaged tag. - Let the browser script record the initial
PageView. - Let the browser script record later supported client-side navigation automatically.
- Do not attach another page-view listener to your router.
Verify the installation
Prove the script, initial page, later routes, and action events appear once.
Move to first-party tracking
Replace the complete tracking URL after Bily validates your customer subdomain.