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 The Copy Haus .
Step 1: Add the Rewardful tracking script
Copy the script below and paste it into the <head> on each page of your site (and app, if applicable). Paste this script in the section where you're allowed to add custom head codes or if you're using a third-party plugin for handling custom head codes, paste it into that section.
<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="f504d0"></script>
Copy
Note:
If you're using a platform that has an official integration with Rewardful, simply copy & paste your Rewardful API key: f504d0.
Note: if you're using Google Tag Manager, make sure to use the GTM version of the script.
Copy and paste the code snippet below into Google Tag Manager:
<script>
(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');
(function() {
var el = document.createElement('script');
el.setAttribute('src', 'https://r.wdfl.co/rw.js');
el.setAttribute('data-rewardful', 'f504d0');
document.body.appendChild(el);
})();
</script>
Copy
Google Tag Manager has a bug that strips away HTML attributes from tags, which is why the Rewardful script tag is being dynamically inserted.
Learn more →
Step 2: Set up your Stripe checkout
Softr allows you to build your checkout flow using Stripe blocks.
Click here to follow their instructions for building a checkout.
Step 3: Add the conversion tracking script to your confirmation page
If your customers are redirected to a specific Softr page after a successful payment, add the following conversion tracking script to that page.
Place the code near the footer section:
<script>
rewardful('ready', function() {
rewardful('convert', { email: window['logged_in_user']['softr_user_email'] });
});
</script>
Copy