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

# 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="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FtBwChuOX69vqYXGyihBC%2Fimage.png?alt=media&amp;token=7aecfc74-5e74-4fb4-b71e-48b5b98dec4b" 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%2Fu6ddN7tqreylTayhbdOh%2Fimage.png?alt=media\&token=4b18a4f1-a25a-4c3f-8145-9c4f949aa7c5)

Now, 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%2FtzvYCfQUdwZJTOFJip3p%2Fimage.png?alt=media\&token=2df552e0-34ac-45a4-a5bd-dd8242d18b66)

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

![New commission rule](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FEme4kabbQTlqrllRbZ7q%2Fimage.png?alt=media\&token=b7ab301c-8d79-4272-8817-15114601b66a)

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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fn8Dq2vT97AWe2mdgPjOH%2Fimage.png?alt=media\&token=0bbca726-5cd3-4452-be26-82172db6de4b)

Now, set the matches value.

![Set the matches value](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fxix9QEpp4606llMgV1Pq%2Fimage.png?alt=media\&token=07256792-e3c7-4ddc-b2ee-18cc8c2ce050)

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

![Select the affiliate](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FxxeyPn6guhH4ahPG3Ieu%2Fimage.png?alt=media\&token=aa5a9603-0ea3-4c54-b57e-25587ca2d36a)

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

![Click on Submit](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FFDhQuxbV8Ik027DK8eSO%2Fimage.png?alt=media\&token=410df444-da35-4f9a-ad72-212c830f49b6)

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

![](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FC8CKUOhWioArLJqj7H5a%2Fimage.png?alt=media\&token=d3e34b63-c02e-4a1f-a6f4-194e2b073208)
