Install the package
Initialize once
Select the intended store, then open Bily > Settings > Apps > More settings > Install tracking. Choose your framework and use the exactscriptUrl from the SDK snippet.
analytics.ts
main.ts
init() owns script loading for this installation path.
Track client-side route changes
The browser script records the initial page view. Save that initial URL, then call this function only after your router completes a later navigation.analytics.ts
trackCommittedRoute() from your router’s after-navigation callback. Do not call it during the initial application mount.
Track an action
create-workspace.ts