Affiliates
Learn how to configure affiliate programs for your TanStarter application
TanStarter 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:
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
.envfile:
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
.envfile:
VITE_AFFILIATE_PROMOTEKIT_ID=your_promotekit_keyIf 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.
Environment Configuration
Set up environment variables
TanStarter Docs