Replit
Set up revenue attribution when using faurya with Replit AI website builder. Track online sales and subscription revenue through Stripe payments.
Attribute revenue with Replit
Make sure you've added Faurya tracking to your Replit app and connected your Stripe account first.
Copy and paste this prompt to Replit AI to automatically set up revenue attribution:
Prompt for Replit AI:
I need to add Faurya revenue attribution tracking to my Stripe payment integration. I don't know which Stripe method is currently implemented, so please analyze the existing code and implement the appropriate solution.
Here are the 4 possible implementations based on what's currently in the code:
METHOD 1 - If using Stripe Payment Links:
If you find Stripe Payment Links being used, tell me to follow this guide instead: https://datafa.st/docs/stripe-payment-links (this requires configuration in the Stripe dashboard, not code changes)
METHOD 2 - If using Stripe Checkout API (stripe.checkout.sessions.create):
Modify the checkout session creation to include Faurya tracking cookies in metadata:
1. Extract 'faurya_visitor_id' and 'faurya_session_id' from request cookies
2. Add them to the checkout session metadata:
metadata: {
faurya_visitor_id: request.cookies.get('faurya_visitor_id'),
faurya_session_id: request.cookies.get('faurya_session_id')
}
See full documentation: https://datafa.st/docs/stripe-checkout-api
METHOD 3 - If using Stripe PaymentIntent API (stripe.paymentIntents.create):
Modify PaymentIntent creation to include faurya tracking cookies in metadata:
1. Extract 'faurya_visitor_id' and 'faurya_session_id' from request cookies
2. Add them to the PaymentIntent metadata:
metadata: {
faurya_visitor_id: request.cookies.get('faurya_visitor_id'),
faurya_session_id: request.cookies.get('faurya_session_id')
}
See full documentation: https://datafa.st/docs/stripe-payment-intent-api
METHOD 4 - If using any other Stripe method or unsure:
Add client-side tracking on the payment success page:
window.faurya("payment", { email: userEmail });
Replace 'userEmail' with the actual customer's email.
See full documentation: https://datafa.st/docs/stripe-other-methods
Please:
1. Analyze the current Stripe payment implementation to determine which method is being used
2. Apply the appropriate solution above
3. Confirm which method you implementedOnce revenue attribution is active, you'll see detailed payment analytics in your Faurya dashboard with full visitor journey tracking.
Lovable
Set up revenue attribution when using Faurya with Lovable AI website builder. Track e-commerce sales and subscription revenue through Stripe integration.
Vercel v0
Set up revenue attribution when using faurya with Vercel v0 AI website builder. Track sales and subscription revenue through Stripe payment integration.