Affiliate Program

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
Activate and configure Affiliates on the Lemon Squeezy Portal.
Open
config.ts
and updateaffiliateProgramLink
(replaceyourstore
with your LS store name).Set
<store_name>
in the fileLemonSqueezyAffiliateScript.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.
export function Providers({ children }: { children: React.ReactNode }) {
return (
<SessionProvider>
<Toaster />
<UserdeskChat />
<CrispChat />
<LemonSqueezyAffiliateScript /> // <-- LS tracking script
<CacheProvider>
<ChakraProvider theme={customTheme}>{children}</ChakraProvider>
</CacheProvider>
</SessionProvider>
);
}
Last updated
Was this helpful?