Shipped
HomeContacts
  • Get started
  • 📚Tutorials
    • Make a waiting list
    • Launch a pre-sale
    • Build a SaaS
    • Create your store on Lemon Squeezy
  • 🟩Features
    • AI Services
    • Affiliate Program
    • Analytics
    • Authentication
      • MailChimp
      • Loops
      • AWS SES
      • SendGrid
      • Supabase Auth
        • Supabase Authentication Flow
        • Supabase Magic Link
        • Supabase Email & Password
        • Supabase Login with Google
    • API endpoints
      • 🛡️Authenticated API
    • Blog
    • Customer support
    • Chrome Extension
    • Dark mode
    • Database
      • Update your database
      • MongoDB
    • Emails
    • Error pages
    • Icons
    • Onboarding
    • Payments
      • Lemon Squeezy
        • Subscriptions
        • One-time purchase
        • Test mode
      • Stripe
    • Private pages
    • SEO
    • shadcn/ui
    • Supabase
    • Workspace / Organizations
  • 📦Components
    • AccountMenu
    • CtaBox
    • DarkModeSwitch
    • Explainer video
    • FAQ
    • Features
    • Footer
    • Header
    • Hero
    • Lifetime
    • Pricing
    • Sales Notification
    • Secondary Sidebar Pages
    • Sidebar
    • Tabs
    • Testimonials
    • Waitlist
    • WebAppPage
  • 🚀Deployment
  • ✅Other
    • Configuration
    • Changelog widget
    • Favicon
    • Google Fonts
    • Sitemap
    • Theme
  • Updates
  • GitHub Repository
  • Support
Powered by GitBook
On this page

Was this helpful?

  1. Features

Affiliate Program

PreviousAI ServicesNextAnalytics

Last updated 16 days ago

Was this helpful?

Shipped is equipped with an Affiliate program page, designed to improve the conversion.

The affiliate program system is provided by Lemon Squeezy out of the box.

You only need to enable the affiliate program in your Lemon Squeezy store and configure your affiliate link in the file config.ts into the variable affiliateProgramLink.

How to activate your affiliate program

  1. Open config.ts and update affiliateProgramLink (replace yourstore with your LS store name).

  2. Set <store_name> in the file LemonSqueezyAffiliateScript.tsx:

    window.lemonSqueezyAffiliateConfig = { store: "<store_name>" };

The Lemon Squeezy tracking script is already included in the provider component, when a user lands on your website from an affiliate link, and they subscribe, they will be automatically counted as conversions from an affiliate.

src/app/providers.tsx
export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <SessionProvider>
      <Toaster />
      <UserdeskChat />
      <CrispChat />
      <LemonSqueezyAffiliateScript /> // <-- LS tracking script
      <CacheProvider>
        <ChakraProvider theme={customTheme}>{children}</ChakraProvider>
      </CacheProvider>
    </SessionProvider>
  );
}

Activate and configure Affiliates on the .

🟩
Lemon Squeezy Portal