v0 generates Next.js apps with the App Router and deploys them to Vercel. That means Reveata on a v0 app is Reveata on Next.js, set up through v0's chat instead of your editor.
What you get
- Every page view, client-side navigation included.
- Payments from your Stripe account credited to visits once the checkout passes the visitor id.
- Goals for sign-ups and trials, added by prompt.
- Optional first-party serving with Next.js rewrites or the managed proxy.
How to install it
Ask v0 to import Script from next/script in app/layout.tsx and add the Reveata tag inside <body> after {children}, exactly as written:
<Script src="https://reveata.com/js/script.js" data-website-id="ws_your_tracking_id" strategy="afterInteractive" />Or edit app/layout.tsx in v0's code view or the connected GitHub repository. Then publish: the first Publish creates the Vercel project, and later changes go live with Publish → Publish Changes or by merging the pull request. v0's own docs are at v0.app/docs (opens in a new tab).
In Reveata, add the website with your custom domain or the production .vercel.app address. Preview deployments run on other addresses and are refused unless you add them as additional domains, which keeps testing out of your numbers.
How payments are matched to visits
v0 adds Stripe through the Vercel Marketplace, starting as a Stripe sandbox that you claim into a Stripe account for production. The checkout code is in your Next.js app:
- Connect the live Stripe account in Reveata (Stripe revenue analytics).
- Paste the prompt from revenue in apps built with AI into v0. It sends
window.reveata.metadata()to the route or server action that creates the checkout and puts the visitor id in its metadata. The server side is shown in Next.js analytics.
Payments in the Stripe sandbox are not imported from your live account, so claim the sandbox before you launch.
Serving the script from your own domain
- The managed proxy: one DNS record with a custom domain.
- Rewrites in the app: the Next.js and Vercel sections of proxy through your own server, with
REVEATA_PROXY_SECRETset in the Vercel project.