# Affilae

[Affilae ](https://affilae.com)provides complete affiliate marketing solutions to manage your partnership strategies. Using this destination you can enable [server-side tracking](https://affilae.com/en/documentations/server-to-server-tracking-s2s-2/).

## Key features

The Affilae destination provides the following key features:

* **Events structure**: our [Events reference](https://doc.commandersact.com/developers/tracking/events-reference) matches [Affilae conversion tracking](https://affilae.com/en/documentations/server-to-server-tracking-s2s-2/), meaning that your data is properly bridged to the expected fields in an optimized way.
* **Prebuilt mappings**: data mapping for event-based destinations happens automatically, which simplifies user inputs.
* **Smart mapping**: data mapping can be readjusted using your datalayer defined fields.
* **Support for multi-item data**: information included in the [item](https://doc.commandersact.com/developers/tracking/events-reference#item) array is dispatched to Affilae.

## Destination setup

### Configuration

<table><thead><tr><th width="300">Settings</th><th>Description</th></tr></thead><tbody><tr><td><code>Key</code></td><td><em><strong><code>Required</code></strong></em><br>Your key as provided by Affilae on the "conversion code" page through your affiliate program configuration dashboard.</td></tr><tr><td><code>Click Id</code></td><td><em><strong><code>Required</code></strong></em><br>The click identifier is automatically generated by Affilae when users click on affiliate links: it's set in the landing URL through the <code>aecid</code> parameter.</td></tr><tr><td><code>Revenue Share Id</code></td><td>Your client identifier if the <code>Revenue Share</code> option is activated. Please use an identifier that will not change over time, the best being the identifier number used in your database. Leave this empty if you do not use the <code>Revenue Share</code> option.</td></tr></tbody></table>

## Quick reference

| Commanders Act Events  | Affilae Tracking   |
| ---------------------- | ------------------ |
| `[Any Event]` **\[1]** | `[Any Conversion]` |

{% hint style="info" %}
**\[1]** Use [**Destination filters**](https://doc.commandersact.com/features/destinations/destination-filters) to specify your matching events.
{% endhint %}

## Field mappings

{% hint style="info" %}
Most properties can be remapped using our "Smart Mapping" feature.
{% endhint %}

<table><thead><tr><th width="351.29729729729735">Commanders Act Properties</th><th>Affilae Properties</th></tr></thead><tbody><tr><td><code>Key</code></td><td><code>key</code> <strong>[*]</strong></td></tr><tr><td><code>Click Id</code></td><td><code>cids</code> <strong>[*]</strong></td></tr><tr><td><code>id</code></td><td><code>id</code> <strong>[*]</strong></td></tr><tr><td><code>currency</code></td><td><code>currency</code> <strong>[*]</strong></td></tr><tr><td><code>revenue</code></td><td><code>amount</code></td></tr><tr><td><p><code>payment_method</code> <strong>[1]</strong></p><p><code>type</code> <strong>[2]</strong></p></td><td><code>payment</code></td></tr><tr><td><code>Revenue Share Id</code></td><td><code>customer</code></td></tr><tr><td><code>partners.affilae.cv</code></td><td><code>cv</code></td></tr><tr><td><code>coupon</code></td><td><code>voucher</code></td></tr><tr><td><code>items.X.id</code></td><td><code>product</code> <strong>[3]</strong></td></tr></tbody></table>

{% hint style="info" %}

> **\[\*]** Mandatory property.  \
> \&#xNAN;**\[1]** Supported values: <mark style="color:blue;">`by_bank_transfer_in_advance`</mark> and <mark style="color:blue;">`online_payment_system`</mark> .  \
> \&#xNAN;**\[2]** Supported values: <mark style="color:blue;">`online`</mark> , <mark style="color:blue;">`offline`</mark> and <mark style="color:blue;">`call`</mark> .  \
> \&#xNAN;**\[3]** product identifiers are separated by semicolons (;).
> {% endhint %}
