Affiliate Marketing
ShipSaaS supports affiliate marketing via built-in integrations with Affonso and PromoteKit. These platforms help you track referrals and manage affiliate commissions.
Website Configuration
Section titled “Website Configuration”Update the affiliate marketing settings in src/config/website.ts:
export const websiteConfig: WebsiteConfig = { // ... affiliates: { enable: true, provider: 'affonso', // or 'promotekit' },};Configure Affiliate Marketing Platform
Section titled “Configure Affiliate Marketing Platform”Based on your chosen platform, configure the corresponding environment variables:
Affonso
Section titled “Affonso”- Visit Affonso and sign up.
- Create a new campaign.
- Retrieve your Affiliate ID.
- Add the Affiliate ID to your environment variable file:
.env
VITE_AFFILIATE_AFFONSO_ID=your_affonso_idPromoteKit
Section titled “PromoteKit”- Visit PromoteKit and sign up.
- Create a new referral program.
- Retrieve your campaign key.
- Add the public key to your environment variable file:
.env
VITE_AFFILIATE_PROMOTEKIT_ID=your_promotekit_keyIf 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
References
Section titled “References”Next Steps
Section titled “Next Steps”Explore more related features:
-
Payment Configuration - Configure Stripe payment
-
Analytics Configuration - Configure analytics tools
-
Deployment - Deploy to Cloudflare Workers
-
Blog - Configure blog content