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

# Buy Links

> Add purchase links to enable direct product sales from your pages

Buy links let customers purchase products directly from your page.

## Add a Product

### Step 1: Create Product

1. Go to "Products" → "Add Product"
2. Fill out all necessary information and define a product code
3. Include cost of goods if you want reporting

### Step 2: Embedding the Buy Link

1. Create a link tag and insert `[BUY=product_code]` or `[UPSELL=product_code]`
2. You can pass more data, e.g., `[BUY=product_code extra=abcd]`

### Step 3: Merchant Information

1. If you have a different code on Buygoods, Clickbank, or Digistore24, go to the "Merchant Information" tab
2. Associate the correct product ID from that platform

## Buy Link Formats

### Basic Buy Link

```
[BUY=your_product_code]
```

### Upsell Link

```
[UPSELL=your_product_code]
```

### Advanced Parameters

```
[BUY=product_code extra=campaign_data]
```

## Parameter Options

### Standard Parameters

* **extra**: Additional tracking data
* **quantity**: Pre-set purchase quantity
* **discount**: Apply discount codes

### Platform-Specific Affiliate Parameters

Affiliate parameters are typically passed via URL query strings to the landing page, not in buy links. The system automatically captures and tracks them:

* **ClickBank**: `hop` or `affiliate` (affiliate ID), `tid` (tracking ID/sub-affiliate)
* **Buygoods**: `aff_id` (affiliate ID), `subid` (sub-affiliate tracking)
* **Digistore24**: `aff` (affiliate ID)

<Note>
  **CBFID** (ClickBank Pitch Flow ID) is configured at the funnel level and automatically included in purchase links. You don't need to add it manually to buy links.
</Note>

## Product Setup Best Practices

### Required Information

* Clear product name and description
* Accurate pricing information
* Product code (keep it simple and memorable)
* High-quality product images

### Optional but Recommended

* Cost of goods sold (for profit tracking)
* Product categories and tags
* Shipping information
* Return/refund policy

## Troubleshooting Buy Links

### Common Issues

* **Link not working**: Verify product code spelling
* **Wrong price showing**: Check merchant platform settings
* **Affiliate tracking missing**: Ensure proper parameter format
* **Payment processing errors**: Verify merchant account status

### Testing Your Links

* Test purchase flow from start to finish
* Verify affiliate tracking is working
* Check that confirmation emails are sent
* Ensure proper redirect after purchase

## Related Documentation

* [Upsells](/products/upsells) — Post-purchase one-click upsells within a funnel
* [QuickBuy (Card on File)](/products/quickbuy) — Charge returning customers with their stored card, no checkout needed
* [Advanced Purchase Links](/products/advanced-purchase-links) — Generated link formats and examples
