Attribute revenue with Vercel v0

Before proceeding, confirm that you have set up Flowsery Analytics tracking on your v0 site and linked your Stripe account.

Use the following prompt with v0 AI to configure revenue attribution automatically:

Prompt for v0 AI:

I want to integrate Flowsery Analytics revenue attribution into my Stripe payment setup. I'm not sure which Stripe integration method is currently in use, so please inspect the codebase and apply the correct solution.

Below are 4 possible approaches depending on the existing implementation:

METHOD 1 - If using Stripe Payment Links:
If Stripe Payment Links are detected, direct me to this guide instead: https://analytics.flowsery.com/docs/stripe-payment-links (this needs Stripe dashboard configuration rather than code changes)

METHOD 2 - If using Stripe Checkout API (stripe.checkout.sessions.create):
Add Flowsery Analytics visitor tracking to the checkout session creation:
1. Read '_fs_vid' and '_fs_sid' cookies from the incoming request
2. Pass them in the checkout session metadata:
metadata: {
  _fs_vid: cookieValue1,
  _fs_sid: cookieValue2
}
Full documentation: https://analytics.flowsery.com/docs/stripe-checkout-api

METHOD 3 - If using Stripe PaymentIntent API (stripe.paymentIntents.create):
Add Flowsery Analytics visitor tracking to the PaymentIntent creation:
1. Read '_fs_vid' and '_fs_sid' cookies from the request
2. Pass them in the PaymentIntent metadata:
metadata: {
  _fs_vid: cookieValue1,
  _fs_sid: cookieValue2
}
Full documentation: https://analytics.flowsery.com/docs/stripe-payment-intent-api

METHOD 4 - If using another Stripe method or uncertain:
Add client-side payment tracking on the success page:
window.flowsery("payment", { email: customerEmail });
Substitute 'customerEmail' with the buyer's actual email from the payment.
Full documentation: https://analytics.flowsery.com/docs/stripe-other-methods

Please:
1. Review the current Stripe payment implementation to identify which method is in use
2. Apply the matching solution from above
3. Tell me which method was implemented

Once revenue attribution is configured, your Flowsery Analytics dashboard will display detailed payment analytics with complete visitor journey tracking.