> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.clientexec.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Add Clientexec Affiliate Tracking To Website

In Clientexec version 6.6 we introduced a new Affiliate System. If you want to add the tracking links to your website just follow these instructions. (Note: Your Clientexec installation automatically tracks hits).

1. Go to **Settings** > **Affiliates** > **Custom Links**.
2. Copy and paste the code provided there on all your external website pages you want to include the affiliate tracking on. 

\*\*Example: \*\*

```html
<script src="https://yourclientexecsite.com/templates/default/js/aff.js"></script>
<script>
    CEAffTracker.setParamNameId('aff');
    CEAffTracker.setCookieDays(90);
    try {
        CEAffTracker.track();
    } catch (err) { }
</script>
```