The final step is to add Rewardful to your website so that we can track visits, leads, and conversions.
These instructions are for the client-side version of Stripe Checkout, which runs entirely in the web browser with JavaScript.
Rewardful integrates with Stripe Checkout by passing the unique click ID (i.e. referral ID) to Stripe as the clientReferenceId
parameter when redirecting to checkout.
It's important to note that
Stripe Checkout will raise an error if clientReferenceId
is set to a blank value.
You may set this parameter to an arbitrary string if no referral is present.
Our getClientReferenceId()
function below will automatically do this for you.
Paste the following JavaScript snippet into the
<head>
tag:
<script>(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');</script>
<script async src='https://r.wdfl.co/rw.js' data-rewardful='80669a'></script>
Copy
It must appear on every page of your application
and marketing website.
When a visitor arrives on your website through an affiliate link, Rewardful creates a unique referral ID to represent
that visitor. This value (a UUID string) must be passed to the stripe.redirectToCheckout()
function call
as the clientReferenceId
parameter.