Install Trfyx in Vue.js
Add the Trfyx tracker from your application’s main entry point so it loads once for the whole Vue application.Add the tracker to main.js or main.ts
Open your main entry file and add the tracker before mounting the Vue app:
Alternative: add the script to index.html
If your project uses a standard Vite-generated index.html, you can place the following inside its <head> instead. Use one installation method, not both.
Verify installation
- Deploy the application and open the live URL.
- Navigate between several client-side routes.
- Check app.trfyx.com for activity in the matching project.
- If nothing appears, inspect the browser’s Console and Network tabs for blocked script or tracking requests.