LogoShipTanStarter Docs

Affiliates

Learn how to configure affiliate programs for your ShipTanStarter application

ShipTanStarter supports affiliate marketing through integration with Affonso and PromoteKit. These platforms help you track referrals and manage affiliate commissions.

Setup

Website Configuration

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

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

Configure Affiliate Platform

Based on the affiliate platform you selected, configure the corresponding environment variable:

Go to Affonso and sign up

Create a new campaign

Get your affiliate ID

Add the affiliate ID to your .env file:

.env
VITE_AFFILIATE_AFFONSO_ID=your_affonso_id

Go to PromoteKit and sign up

Create a new referral program

Get your Key

Add the key to your .env file:

.env
VITE_AFFILIATE_PROMOTEKIT_ID=your_promotekit_key

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

References

On this page