FauryaFaurya
Installation Guidelines

Vercel v0

How to add Faurya to your Vercel v0 AI-generated components.

Add Faurya to your Vercel v0 project

Vercel v0 generates React components and applications through AI conversation. To add analytics tracking, you'll need to ask v0 to integrate the Faurya script into your component structure.

Step 1: Get your Faurya tracking details

Go to your Faurya website settings and locate your Website ID and domain name.

Image coming soon

Website settings guide

This information comes from your Faurya tracking code:

<script
  defer
  data-website-id="YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://faurya.com/js/script.js"
></script>

Step 2: Prompt v0 with this message

Customize the prompt below with your details and send it to Vercel v0:

Please add Faurya analytics tracking to my application. I need this script integrated so it tracks all page views and user interactions.

Here's the tracking script to implement:

<script
  defer
  data-website-id="YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://faurya.com/js/script.js"
></script>

For React components:
- Add this using Next.js Script component in the layout or root component
- Make sure it loads in the document head
- Ensure tracking works across all routes and components
- Keep the defer attribute for performance optimization

Please show me where you've added the analytics code and confirm it will track user activity throughout the entire application.

Step 3: Verify the integration

Once v0 updates your project:

  1. Review the code — Check that v0 added the Script component properly
  2. Deploy your app — Use Vercel's deployment from v0 or export the code
  3. Test analytics — Visit your live site and monitor your Faurya dashboard

For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.

Debugging issues

If analytics aren't working correctly:

I need to verify the Faurya analytics setup. Can you check:

1. Did you add the Script component to the root layout?
2. Is the script loading in the browser's network tab?
3. Does tracking work on all pages/routes?
4. Can you show the exact implementation?

Analytics should load from: https://faurya.com/js/script.js
With website ID: YOUR_WEBSITE_ID

Please fix any issues with the tracking implementation.

Typical issues:

  • Script component not imported from next/script
  • Analytics only working on specific components
  • Incorrect website ID or domain values
  • Project not deployed with latest changes

Get support

Need help with your v0 integration? Email us at team@faurya.com.

On this page