# 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="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FnnHDl0gD3MCIpoMxPxmp%2Fimage.png?alt=media&#x26;token=052558d6-823f-417c-90c2-536af17cc75d" alt=""><figcaption><p>Commissions > Royalties (Fixed commissions)</p></figcaption></figure>

Here, go to the Rule based tracking section.

![Rule based tracking](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FRhZ1k4kXR5XooCBxEsk1%2Fimage.png?alt=media\&token=af8830a3-7b97-4f3b-9cea-bc314d419b32)

Now, enable the toggle.

![Enable the toggle](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FUORwphMsTnx17TgKC7Cb%2FScreenshot%202021-11-29%20210440.png?alt=media\&token=f61c9d54-dfb5-48e0-8b45-d2c7d7bdf0ba)

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

![Click on New rule](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FP0wWRB7rnWmb48qmRaO9%2FScreenshot%202021-11-29%20215336.png?alt=media\&token=c05cf2f7-b916-4edb-8cfc-9afde8a9803f)

This will open up the New commission rule window.

![New commission rule](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FXNVgpi6B1MRvfE8i9T6w%2Fimage.png?alt=media\&token=b744ae47-5376-4baa-967d-bd7c61088305)

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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FhL4h6gY6v1ZkWkfPrpdF%2FScreenshot%202021-11-29%20220122.png?alt=media\&token=c2e6258f-55b8-446d-ba7d-dd237a11acde)

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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FfhjqfBxrqLDWZGcti1Xt%2FScreenshot%202021-11-29%20222916.png?alt=media\&token=bc1bbae5-1cfb-4272-b1e4-a966449b70e3)

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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FO1Z8L9ajG8ZfWqomaS2X%2FScreenshot%202021-11-29%20223340.png?alt=media\&token=1d833808-a8be-43d9-ad8b-c2235a3b40f5)

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

![](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FhLByj7IUyHotHyDu8jXb%2Fimage.png?alt=media\&token=adf785d4-caff-4c49-bc35-60203423bc73)

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