To add a product tour to a Vue app, install @justonecx/sdk and call init() in main.ts after app.mount() . In Nuxt, put the call in a plugin named plugins/justonecx.client.ts . The .client suffix keeps it out of server rendering. Pass trackRouteChanges: true so tours follow your router.
What do you need?
Your public key (starts with pk_ ) from Settings, Developers .
Your site's origin in Settings, Developers, Domains & CORS . For local work add your dev origin, for example http://localhost:3000 .
The package: npm install @justonecx/sdk . If you prefer, use the script tag from the quickstart instead.
What rules apply in every framework?
Call init() once, in the browser only, after the app mounts.
In single-page apps, pass trackRouteChanges: true .…