Add Trfyx to your Vercel v0 project
Vercel v0 can generate React and Next.js applications. Ask v0 to add Trfyx to the root layout and then review the generated code before deploying.1. Set up the tracking snippet
Use the Trfyx Website ID and domain for the site you want to measure. The script URL ishttps://app.trfyx.com/script.js.
2. Ask v0 to add tracking
Open your project in v0 and use a prompt similar to this:3. Review and deploy
Before deploying, confirm that the generated code includeshttps://app.trfyx.com/script.js, the correct Website ID, and the correct domain. Make sure another copy of the tracker is not already installed.
Deploy the application through your normal Vercel workflow and open the live URL.
4. Verify tracking
- Visit the live website.
- Open browser Developer Tools and check the Network tab for the Trfyx script and tracking requests.
- Navigate between several routes.
- Check app.trfyx.com for activity in the matching project.