# Setup Tracking for Customer Location

**GoAffPro** provides you with the option to set up rule based tracking for customer location.

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

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

Here, go to the Rule based tracking section.

![Rule based tracking](/files/U9KEFpNnq2wUXwdN8k9W)

Now, click on **New rule**.

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

This will open up the New commission rule window.&#x20;

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

Here, select the customer shipping state condition.&#x20;

{% hint style="info" %}
You also have the option to select the customer post code (zip code) and customer shipping country conditions.&#x20;
{% endhint %}

![Select condition](/files/HTByXS6L60ReXRlhNsnL)

Now, set the matches value.

![Set the matches value](/files/yq6PUQC2sczG9zxFRh4j)

After this, select the affiliate (to whom the sale will get attributed).

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

Finally, click on **Submit**.&#x20;

![Click on Submit](/files/6FsHzAwGxH94DZlP0k9m)

The rule based tracking for the order value will get set.&#x20;

![](/files/U9WwxSs1o4QmiL3KC3ym)


---

# 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/setup-tracking-for-customer-location.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.
