Skip to main content

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 is https://app.trfyx.com/script.js.
Replace YOUR_TRFYX_PROJECT_ID with your Trfyx Website ID and yourdomain.com with your website’s domain. Keep the script URL exactly as shown; do not use a DataFast URL or another project’s identifier.

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 includes https://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

  1. Visit the live website.
  2. Open browser Developer Tools and check the Network tab for the Trfyx script and tracking requests.
  3. Navigate between several routes.
  4. Check app.trfyx.com for activity in the matching project.

Troubleshooting

If no data appears, verify the tracker is in the root layout, the project ID and domain are correct, and Content Security Policy (CSP) is not blocking the script or requests. Confirm you are checking the deployed environment associated with the Trfyx project.
Last modified on October 11, 2026