> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/affiliate-commissions/advanced-settings/setup-rule-based-tracking-for-sales.md).

# 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
* Point of sale Source ID
* Payment gateway matches
* Sub ID
* Product name
* Product SKU
* Product Vendor
* Landing Page URL
* Referring Page URL

![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 %}
