To add referral metadata for a Stripe customer in Webflow using Rewardful, you need to ensure referral tracking is correctly configured so that metadata is automatically passed to Stripe upon checkout.
1. Add Rewardful Script to Webflow
- Go to Webflow Project Settings > Custom Code.
- In the Head Code, paste the Rewardful script:
- You’ll find this in your Rewardful dashboard under Settings > Installation.
- Save changes and publish your site.
2. Enable Tracking in Rewardful
- Make sure Rewardful is set up to track referrals using cookies and URL parameters (e.g.,
?via=affiliate-id
). - When visitors land on your page with a referral link (like
your-site.com?via=affiliate-id
), Rewardful sets a cookie with the affiliate ID.
3. Use Webflow Checkout or Stripe Checkout
- If using Webflow Ecommerce, Rewardful can automatically detect the referral cookie and inject metadata when the customer completes the purchase.
- If using Stripe Checkout initiated via Webflow (e.g., with forms or custom buttons):
- Use Rewardful’s JavaScript helper to attach the referral information.
- Rewardful automatically identifies the referral and includes metadata (such as
referral_affiliate_id
) with the Stripe customer record if the Rewardful script is present on the checkout success page.
- Go to your Stripe Dashboard, search for a test customer who converted through a referral.
- Under the customer record, click Metadata to confirm values like:
- rewardful_referral_id
- rewardful_affiliate_id
5. Test the Integration
- Generate an affiliate link from Rewardful (e.g.,
your-site.com?via=abc123
). - Complete a test purchase or signup.
- Check the customer record in Stripe for the referral metadata.
Summary
To add referral metadata for Stripe customers in Webflow with Rewardful, embed the Rewardful tracking script in your Webflow site, ensure referrals are tracked via UTM or ?via=
links, and ensure your checkout (Webflow Ecommerce or Stripe Checkout) includes the Rewardful script so the metadata is automatically passed to Stripe.