Install Bily
Start tracking once
Select your store. Then open Bily > Settings > Apps > More settings > Install tracking, choose your framework, and copy the exactscriptUrl from the SDK snippet.
analytics.ts
main.ts
init() loads the script.
Track every later route once
The browser script records the initial page view automatically. Save that URL, then run this function only after the router completes a later navigation.analytics.ts
trackCommittedRoute() from your router’s after-navigation callback. Do not call it during the initial mount, or you will duplicate the automatic page view.
Track successful actions
create-workspace.ts