Add Rewardful to your website

The final step is to add Rewardful to your website so that we can track visits, leads, and conversions.
These instructions have been prepared for Sticky Speed.

Instructions for JavaScript (Browser)

Choose a different setup method
Looking for more details and advanced usage? Check out our full JavaScript API →
Step 1: Install JavaScript Snippet
Paste the following JavaScript snippet into the <head> tag:
Copy
It must appear on every page of your application and marketing website.
Step 2: Track the conversion on your thank-you page
Execute the rewardful('convert') function immediately after creating the Stripe customer. Usually this occurs somewhere on a thank-you page, an AJAX response handler, or some other callback that fires after your checkout completes.
Copy
⚠️ Replace customer@example.com with your customer's email address.
It must be the same email address associated with the Stripe customer object.
Notes:
  • You can learn more about Client-Side Conversion Tracking →
  • Rewardful is currently not available as an NPM package and must be installed on your website using the snippet from Step 1.
  • See an
    This example component shows how you might attach an event handler within componentDidMount() that updates the component's state with the referral UUID:
    When the form data is submitted to your server from React, you then add the referral value to the Stripe customer's metadata:
    Adding the referral UUID to the Stripe customer's metadata converts the referral and associates it with the affiliate. Whenever that customer is charged, a commission will be paid to the affiliate according to your campaign rules. Please see the Stripe API Reference for full documentation on creating a customer with Node.js.