OPEN HYPER STEP
← 목록으로 (ai-startup)
AI-STARTUP · 57 / 100
ai-startup
CHAPTER 57 / 100
읽기 약 2
FUNCTION

제휴 마케팅: 어필리에이트 프로그램


핵심 개념

affiliate program·tracking·payout·실전 운영 — 영업 자동화.

본문

Affiliate 운영 = 영업팀 0원

📋 코드 (10줄)
[모델]
- A가 본인 audience에 본인 도구 추천
- 가입자에게 commission 지급
- 평균 20~30% (recurring SaaS)


[효과]
- A의 audience 활용
- 본인 광고비 0
- 신뢰 (A가 추천하니까)

Affiliate Tools 비교

📋 코드 (10줄)
| 도구 | 가격 | 특징 |
|---|---|---|
| Rewardful | $49~$$ | 가장 인기, Stripe 통합 |
| FirstPromoter | $59~$$ | 강력 |
| Tolt | $39~ | 신생, 저렴 |
| 자체 구현 | 무료 | 시간 필요 |


→ MVP는 자체 구현 또는 Tolt
→ 검증 후 Rewardful

Rewardful 셋업 (5분)

📋 코드 (14줄)
1. Stripe 연결
2. Affiliate 프로그램 설정:
   - Commission: 30%
   - Cookie 기간: 60일
   - 최소 payout: $50
3. Affiliate 모집 페이지 자동 생성


// 클라이언트 — Rewardful tracking
<Script src="https://r.wdfl.co/rw.js" data-rewardful="..." />


// → Stripe 결제 시 자동 연결
// → A의 commission 자동 계산

자체 구현

SQL📋 코드 (20줄)
CREATE TABLE affiliates (
  id UUID PRIMARY KEY,
  user_id UUID,
  code TEXT UNIQUE NOT NULL,
  commission_rate DECIMAL(3,2) DEFAULT 0.30,
  total_referrals INT DEFAULT 0,
  total_earnings_cents BIGINT DEFAULT 0,
  paypal_email TEXT,
  created_at TIMESTAMPTZ DEFAULT NOW()
);

CREATE TABLE referrals (
  id UUID PRIMARY KEY,
  affiliate_id UUID,
  referred_user_id UUID,
  status TEXT,  -- pending, paid, refunded
  amount_cents BIGINT,
  commission_cents BIGINT,
  created_at TIMESTAMPTZ DEFAULT NOW()
);
TYPESCRIPT📋 코드 (60줄)
// 추적 — 사이트 진입 시
'use client';
import { useSearchParams } from 'next/navigation';

export function TrackReferral() {
  const params = useSearchParams();
  const ref = params.get('ref');

  useEffect(() => {
    if (ref) {
      // 60일 cookie
      document.cookie = `aff_ref=${ref}; max-age=${60*86400}; path=/`;
    }
  }, [ref]);

  return null;
}


// 가입 시 — affiliate 연결
async function signupWithReferral(userData: any) {
  const ref = getCookie('aff_ref');

  const user = await db.user.create({ data: userData });

  if (ref) {
    const affiliate = await db.affiliate.findUnique({ where: { code: ref } });
    if (affiliate) {
      await db.referral.create({
        data: {
          affiliate_id: affiliate.id,
          referred_user_id: user.id,
          status: 'pending',  // 결제 시 paid로
        },
      });
    }
  }
}


// Stripe webhook — 결제 시
case 'invoice.paid': {
  const referral = await db.referral.findFirst({
    where: { referred_user_id: userId, status: 'pending' },
  });
  if (referral) {
    const affiliate = await db.affiliate.findUnique({ where: { id: referral.affiliate_id } });
    const commission = invoice.amount_paid * affiliate.commission_rate;

    await db.referral.update({
      where: { id: referral.id },
      data: {
        status: 'paid',
        amount_cents: invoice.amount_paid,
        commission_cents: commission,
      },
    });
  }
  break;
}

Affiliate 대시보드

TSX📋 코드 (30줄)
function AffiliateDashboard({ affiliate }: { affiliate: Affiliate }) {
  return (
    <div>
      <Card>
        <h3>Your Link</h3>
        <code>https://example.com?ref={affiliate.code}</code>
        <Button onClick={() => copyToClipboard(...)}>Copy</Button>
      </Card>

      <Card>
        <h3>Earnings</h3>
        <p>Total: ${affiliate.total_earnings_cents / 100}</p>
        <p>This month: ${...}</p>
        <p>Pending: ${...}</p>
      </Card>

      <Card>
        <h3>Recent Referrals</h3>
        <ReferralsTable />
      </Card>

      <Card>
        <h3>Materials</h3>
        <Link>이메일 템플릿</Link>
        <Link>로고·이미지</Link>
        <Link>샘플 트윗</Link>
      </Card>
    </div>
  );
}

Affiliate 모집

📋 코드 (23줄)
[누가 좋은 affiliate?]
- 인디 메이커 (Twitter)
- 블로거 (관련 도메인)
- YouTuber
- 기존 사용자 (광팬)
- 컨설턴트·코치


[모집 메시지]
"안녕하세요! [내 제품]을 사용해주셔서 감사합니다.

저희 affiliate 프로그램에 관심 있으세요?
- 30% recurring commission
- 60일 cookie
- 매월 PayPal 자동 지급

가입은 [link]에서:"


[목표]
- 첫 달: 5명 active affiliate
- 6개월: 20명+
- 1년: 100명+

지급 자동화

TYPESCRIPT📋 코드 (26줄)
// 매월 1일 — 자동 지급
async function processPayouts() {
  const affiliates = await db.affiliate.findMany({
    where: { unpaid_balance_cents: { gte: 5000 } },  // $50+
  });

  for (const a of affiliates) {
    // PayPal payout
    await paypal.payouts.send({
      sender_batch_header: { email_subject: 'Affiliate Payout' },
      items: [{
        recipient_type: 'EMAIL',
        amount: { value: (a.unpaid_balance_cents / 100).toFixed(2), currency: 'USD' },
        receiver: a.paypal_email,
      }],
    });

    await db.affiliate.update({
      where: { id: a.id },
      data: {
        total_paid_cents: { increment: a.unpaid_balance_cents },
        unpaid_balance_cents: 0,
      },
    });
  }
}

다음 챕터

CH.58 "수익 다각화: 3가지 이상 수익원".


AI 프롬프트
🤖 AI에게 잘 물어보는 법 — 모델·전략별 프롬프트
무료

월 $0 — 검증·시작 단계

Affiliate 마케팅을 무료 도구만으로
시작하는 방법을 알려줘.
소자본

월 $20~50 — MVP·초기 운영

월 $20~50 예산으로 Affiliate 마케팅을
검증·MVP 단계까지 진행하는 전략은?
프로덕션

월 $200~500 — 성장 단계

Affiliate 마케팅을 프로덕션 단계로
확장할 때 필요한 도구·운영 체계는?
스택

풀스택 — 도구 조합 분석

2026년 Affiliate 마케팅 관련 도구 5개를
조합한 추천 스택을 알려줘.

⭐ 이것만 기억하세요
제휴 마케팅: 어필리에이트 프로그램 이 3가지만 확실히 잡으세요
1.Affiliate 30% commission = 1인 영업팀
2.Rewardful (Stripe 통합) 또는 자체 구현
3.60일 cookie + recurring commission = 검증된 패턴


공유하기
진행도 57 / 100