Add DataFast 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 DataFast script into your component structure.

Step 1: Get your DataFast tracking details

Go to your DataFast website settings and locate your Website ID (e.g., "66d5561aa2f1fb254ce42d0b") and domain name (e.g., "yourdomain.com").

Website settings guide

This information comes from your DataFast tracking code:

<script
    defer
    data-website-id="YOUR_WEBSITE_ID"
    data-domain="YOUR_DOMAIN.COM"
    src="https://datafa.st/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 DataFast 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="⚠️>>> REPLACE WITH YOUR WEBSITE ID <<<⚠️"
  data-domain="⚠️>>> REPLACE WITH YOUR DOMAIN <<<⚠️"
  src="https://datafa.st/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 DataFast dashboard

Debugging issues

If analytics aren't working correctly:

I need to verify the DataFast 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://datafa.st/js/script.js
With website ID: ⚠️>>> REPLACE WITH 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 marc@datafa.st.

Something missing? Suggest features ✍️