Awin
3 minute read
Awin is an affiliate marketing program that connects advertisers and affiliates of all sizes. It provides a network of affiliate partners, click tracing and tracking, advertiser directory, reports and analytics, and more.
Find the open source code for this destination in the GitHub repository.
Connection compatibility
| Destination Information | |||
|---|---|---|---|
| |||
Get started
Once you have confirmed that the source platform supports sending events to Awin, follow these steps:
- From your RudderStack dashboard, add a source. Then, from the list of destinations, select Awin.
- Assign a name to the destination and click Continue.
Connection settings
To successfully set up Awin as a destination, you will need to configure the following settings:
- Advertiser ID: Enter your Awin advertiser ID.
- Events to Track: Enter the event names for which you want to track the conversions.
You must enter all event names for which you want to make atrackcall.
- Map Rudder payload property to custom Awin field: Enter the RudderStack property and the corresponding Awin custom field you want to map together. These custom properties get associated to a specific transaction and sent to Awin for
trackcalls. The Awin field names must follow thep<int>format (likep1,p2, etc.). RudderStack picks the field values frommessage.propertiesand sends them as query parameters.
Duplicate mapping can cause errors.
Track
You can use the track call to send the conversion data directly to Awin’s servers.
A sample track call is shown below:
rudderanalytics.track("Product Purchased New", {
revenue: 4.99,
currency: "USD",
commissionGroup: "CD",
name: "Shirt",
voucherCode: "FIRSTSALE",
order_id: "ORD123",
});Supported mappings
The following table lists the mappings between the RudderStack and Awin properties:
Product-level tracking
| RudderStack property | Awin property |
|---|---|
properties.order_idproperties.orderIdproperties.orderReferenceproperties.order_referenceRequired | orderReference |
product[i].product_idproduct[i].productIdRequired | productId |
properties.products[i].nameRequired | productName |
properties.products[i].priceRequired | productItemPrice |
properties.products[i].quantityRequired | productQuantity |
properties.commissionGroupproperties.commission_groupRequired. Default value is DEFAULT | commissionGroupCode |
properties.products[i].skuOptional. If not present, RudderStack sends an empty value instead. | productSku |
properties.products[i].categoryOptional. If not present, RudderStack sends an empty value instead. | productCategory |
Other mappings
| RudderStack property | Awin property |
|---|---|
properties.revenueproperties.totalAmountproperties.amountproperties.total_amount | totalAmount |
properties.voucherCodeproperties.voucher_code | voucher_code |
properties.currencyproperties.currencyCodeproperties.currency_code | currencyCode |
properties.cksproperties.awc | awc |
properties.testModeproperties.test_modeproperties.isTestproperties.is_testDefault value is 0. | isTest |
FAQ
Where can I find the Awin advertiser ID?
To obtain your Awin advertiser ID, log in to your Awin dashboard to see the advertiser ID in the top right corner as well as in the URL:
