> For the complete documentation index, see [llms.txt](https://docs.tracknow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tracknow.io/payouts/goal-based-payouts.md).

# Goal-Based Payouts

The **goal parameter** is a unique value used to trigger specific payouts. When you set a goal value within a payout rule, any conversion that includes this goal will activate that specific payout. This allows you to track special events and assign a different commission rate instead of using the default one.

***

### How to Setup a Payout With a Goal Value?

Let's explain this with an example.

In this example, the affiliate program has a single payout: affiliates earn 5% of the purchase amount. This is set as a **General payout**, which means it serves as the default payout rate applied to all affiliates.

<figure><img src="/files/Pvc6anF2U0G3wRBxugjG" alt=""><figcaption></figcaption></figure>

As mentioned earlier, goals can be used to trigger specific payouts for certain events.

In this example, the special event is a purchase from a specific product category - *Electronics*.\
For regular purchases, affiliates will earn a 5% commission (the default General payout). However, for purchases in the *Electronics* category, we’ll apply a goal-based payout that gives affiliates an 8% commission.

Let's create a new payout, we'll make it a General payout as well because it is relevant for all affiliates, the affiliate commission will be 8% and we'll add a goal value: *electronics*.

<figure><img src="/files/exGRyXufRktCkrEusMBc" alt=""><figcaption></figcaption></figure>

By creating this payout, we've added a rule to the system:

When a postback is received, the system will check for a *goal* parameter with the value *electronics*. If this value is found, the system will apply this specific payout (8% commission) instead of any other payout, including the default one.

***

### Passing the Goal Parameter in a Postback

Now that we’ve created a payout with a goal parameter, all that’s needed to trigger it is to include the *goal* parameter in the postback, making sure its value matches the one configured in the payout (*electronics* in this case)

Example of a postback that will **not trigger** the goal-based payout (5% commission will be applied):

<pre><code>https://exmaple-tracking.tracknow.info/postback?click_id={value}&#x26;campaign_id={value}&#x26;order_id=<a data-footnote-ref href="#user-content-fn-1">{value}</a>&#x26;amount={value}&#x26;first_name={value}&#x26;email={value}
</code></pre>

Example of a postback that will **trigger** the goal-based payout (8% commission will be applied):

```
https://exmaple-tracking.tracknow.info/postback?click_id={value}&campaign_id={value}&order_id={value}&amount={value}&first_name={value}&email={value}&goal=electronics
```

{% hint style="info" %}
It is the responsibility of your development team to implement the logic that determines whether the event being sent via postback should include the `goal` parameter. This ensures that goal-specific payouts are only triggered when the appropriate conditions are met.
{% endhint %}

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tracknow.io/payouts/goal-based-payouts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
