# Setup Rule Based Tracking for Sales

**GoAffPro** provides you with the option to set up rule-based tracking for sales.&#x20;

To set up rule-based tracking for sales, go to the **Royalties (Fixed commissions)** section in the **Commissions** tab of the GoAffPro admin panel.&#x20;

<figure><img src="/files/W6ITIGiCQ3MlHAjWSLcJ" alt=""><figcaption><p>Commissions > Royalties (Fixed commissions)</p></figcaption></figure>

Here, go to the Rule based tracking section.

![Rule based tracking](/files/71kgi4sF9R0T208MN60a)

Now, enable the toggle.

![Enable the toggle](/files/yTtwPyjsYiubrMpPoupP)

After this, click on **New rule**.

![Click on New rule](/files/g6yHJbxU5MAlB2ItCzLJ)

This will open up the New commission rule window.

![New commission rule](/files/mDE7oLMWFHqBqP7J3BFA)

Here, select the condition.

You can select different conditions, such as:&#x20;

* Order value is >=
* Order value is <=
* Customer Shipping State
* Customer Postal Code (Zip Code)
* Customer Shipping Country
* Total quantity of items is >=
* Total quantity of items is <=
* First Time Customer
* Old/Recurring Customer
* Coupon code matches
* Customer email matches
* Customer tag matches
* Order tag matches
* Payment gateway matches
* Sub ID
* Product name
* Product SKU
* Product Vendor

![Select the condition](/files/mehJq52DOAOsofoczBpJ)

For conditions such as, **Order value <=, Order value >=, Customer Shipping State/Country, Customer Postal Code (Zip Code), Coupon code, Customer email, Customer tag, Order tag, and Payment gateway**, you can set the match value and select the affiliate (to whom the sale will get attributed).&#x20;

![Set the match value and select the affiliate](/files/8O9ZGtGNAGvSDGxPB8Kj)

For conditions such as **First time customer** and **Old/Recurring Customer**, you can select the affiliate, to whom the sale will get attributed.&#x20;

![Select the affiliate](/files/i3LWv2IVYUGrRQvLcvkl)

Finally, click on **Submit,** to save the rule-based tracking condition for sales.&#x20;

![](/files/PgCHh32b4tU1VLhQyacv)

{% embed url="<https://youtu.be/rNRsJh9pOrw>" %}
Setup Rule Based Tracking for Sales
{% endembed %}


---

# Agent Instructions: 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:

```
GET https://docs.goaffpro.com/affiliate-commissions/advanced-settings/setup-rule-based-tracking-for-sales.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
