Skip to content

Affiliate Marketing

ShipSaaS supports affiliate marketing via built-in integrations with Affonso and PromoteKit. These platforms help you track referrals and manage affiliate commissions.

Update the affiliate marketing settings in src/config/website.ts:

export const websiteConfig: WebsiteConfig = {
// ...
affiliates: {
enable: true,
provider: 'affonso', // or 'promotekit'
},
};

Based on your chosen platform, configure the corresponding environment variables:

  1. Visit Affonso and sign up.
  2. Create a new campaign.
  3. Retrieve your Affiliate ID.
  4. Add the Affiliate ID to your environment variable file:

.env

Terminal window
VITE_AFFILIATE_AFFONSO_ID=your_affonso_id
  1. Visit PromoteKit and sign up.
  2. Create a new referral program.
  3. Retrieve your campaign key.
  4. Add the public key to your environment variable file:

.env

Terminal window
VITE_AFFILIATE_PROMOTEKIT_ID=your_promotekit_key

If you are setting up your environment, you can now return to the Environment Configuration document and continue. The remainder of this document can be read later.

Environment configuration set environment variables

Explore more related features: