> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a partner program

> Step-by-step guide to creating your first partner program

## Create a New Program

### Step 1: Access Program Creation

1. Log in to your [Partnero dashboard](https://app.partnero.com)
2. Click **Create Program** or navigate to **Programs → New Program**
3. Select **Affiliate/Partner Program** as your program type

### Step 2: Basic Settings

Configure the fundamental settings for your program:

<ParamField path="Program Name" type="string" required>
  A descriptive name for your program (e.g., "Acme Partner Program")
</ParamField>

<ParamField path="Program URL" type="string" required>
  The subdomain for your partner portal (e.g., `partners.yoursite.com`)
</ParamField>

<ParamField path="Website URL" type="string" required>
  Your main website URL where tracking will be installed
</ParamField>

### Step 3: Configure Commissions

Set up how partners will be compensated:

```json theme={null}
{
  "default_commission": {
    "type": "percentage",
    "value": 20,
    "recurring": true,
    "recurring_duration": 12
  }
}
```

**Commission Options:**

<AccordionGroup>
  <Accordion title="Percentage Commission">
    Partners earn a percentage of each sale. Great for variable pricing.

    * Set percentage (e.g., 20%)
    * Optionally cap maximum commission
  </Accordion>

  <Accordion title="Fixed Commission">
    Partners earn a fixed amount per conversion. Best for standardized products.

    * Set fixed amount (e.g., \$50)
    * Works well with subscription products
  </Accordion>

  <Accordion title="Tiered Commission">
    Commission rates increase as partners reach performance thresholds.

    * Define tiers (e.g., 0-10 sales: 20%, 11-50: 25%, 50+: 30%)
    * Motivates partners to sell more
  </Accordion>
</AccordionGroup>

### Step 4: Tracking Settings

Configure how referrals are tracked:

<ParamField path="Cookie Duration" type="number" default="30">
  How many days the referral cookie remains valid
</ParamField>

<ParamField path="Attribution Model" type="string" default="first_click">
  `first_click` - Credit goes to first referrer\
  `last_click` - Credit goes to last referrer
</ParamField>

<ParamField path="Referral Parameter" type="string" default="ref">
  URL parameter for referral tracking (e.g., `?ref=PARTNER_CODE`)
</ParamField>

### Step 5: Partner Portal Branding

Customize the look and feel of your partner portal:

* **Logo** - Upload your company logo
* **Colors** - Set primary and accent colors
* **Custom Domain** - Use your own domain (e.g., `partners.yoursite.com`)

### Step 6: Email Settings

Configure automated emails:

* **Welcome Email** - Sent when partners sign up
* **Approval Email** - Sent when partners are approved
* **Payout Notifications** - Sent when payments are processed

## Install Tracking Code

After creating your program, install the tracking script on your website:

```html theme={null}
<!-- PartneroJS -->
<script>
  (function(p,t,n,e,r,o){ p['__partnerObject']=r;function f(){
  var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
  f.q=f.q||[];p[r]=p[r]||f.bind(f.q);p[r].q=p[r].q||f.q;o=t.createElement(n);
  var _=t.getElementsByTagName(n)[0];o.async=1;o.src=e+'?v'+(~~(new Date().getTime()/1e6));
  _.parentNode.insertBefore(o,_);})(window, document, 'script', 'https://app.partnero.com/js/universal.js', 'po');
  po('settings', 'assets_host', 'https://assets.partnero.com');
  po('program', 'YOUR_PROGRAM_ID', 'load');
</script>
<!-- End PartneroJS -->
```

<Note>
  Replace `YOUR_PROGRAM_ID` with your actual program ID from the dashboard.
</Note>

## Connect Payment Integration

For automatic transaction tracking, connect your payment processor:

<CardGroup cols={2}>
  <Card title="Stripe" href="/integrations/stripe" icon="stripe">
    Automatic tracking for Stripe payments
  </Card>

  <Card title="Paddle" href="/integrations/paddle" icon="credit-card">
    Native Paddle billing integration
  </Card>
</CardGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Invite Partners" icon="user-plus" href="/guides/partner-programs/managing-partners">
    Start recruiting partners to your program
  </Card>

  <Card title="Referral Links" icon="link" href="/guides/partner-programs/referral-links">
    Learn about referral link options
  </Card>
</CardGroup>
