Refgrow

Get started with Refgrow in 3 steps

Set up a Refgrow affiliate program on your website in minutes to grow your business with affiliates. Here is how to get started.

1. Install tracking script

Add the tracking script to the <head> section of your website:

html
<script
  src="https://scripts.refgrowcdn.com/latest.js"
  data-project-id="YOUR_PROJECT_ID"
  async defer>
</script>
Important: Replace YOUR_PROJECT_ID with your actual project ID from the Refgrow dashboard.

2. Add affiliate dashboard

Embed the affiliate dashboard into your website so affiliates can track their performance and earnings.

Option 1: With user email (Referral Program)

Use this when you know the user's email address (e.g., they are already logged in):

html
<div id="refgrow"
  data-project-id="YOUR_PROJECT_ID"
  data-project-email="user@example.com">
</div>
<script src="https://scripts.refgrowcdn.com/page.js" async defer></script>

Option 2: Without user email (Affiliate Program)

Use this when users need to enter their email to access the dashboard:

html
<div id="refgrow"
  data-project-id="YOUR_PROJECT_ID">
</div>
<script src="https://scripts.refgrowcdn.com/page.js" async defer></script>
Note: The dashboard will automatically handle user authentication and show personalized affiliate data.

3. Track user registrations (optional)

If your business has a registration step before purchase, add this tracking call after successful user signups:

javascript
Refgrow(0, 'signup', 'user@example.com');
When to use: Call this function on your registration success page or after successful user signup to track when referred users create accounts. Replace user@example.com with the actual user's email address.

4. Connect payment provider

Choose your payment provider to automatically track purchases and calculate commissions:

Stripe

Most popular payment processor with webhook-based tracking.

  • One-time payments
  • Subscriptions
  • Automatic tracking
View Guide →

LemonSqueezy

Perfect for digital products, services and SaaS businesses.

  • Digital products
  • Subscriptions
  • Built-in tracking

Paddle

Global payment processor with subscription management.

  • Global payments
  • Subscription handling
  • Tax compliance

Polar

Subscription platform for creators and developers.

  • Creator subscriptions
  • GitHub integration
  • Developer-friendly
Don't see your payment provider? Use manual tracking to integrate with any payment system.

Next steps

Explore the API

Programmatically manage your affiliate program.

View API →

Set up payouts

Configure automatic payouts for your affiliates.

Need help?

If you need help, please contact us at support@refgrow.com.

Start Free Trial
Quickstart — Refgrow Docs