> ## Documentation Index
> Fetch the complete documentation index at: https://docs.segmentstream.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Awin

> Connect Awin to SegmentStream and import affiliate cost data.

## Before you begin

You must obtain an API token to provide access to Awin data.

**1. Log in to Awin**

Login to your [Awin control panel](https://ui.awin.com/login).

**2. Navigate to API credentials**

Go to the [API credentials section](https://ui.awin.com/awin-api).

**3. Get your API token**

Enter your account password into the box to display your API token.

## Getting started

**1. Navigate to Data Sources**

Inside the admin panel navigate to the **Data Sources** page and click **+ NEW** on the top right corner.

**2. Select Awin**

Choose **AWIN** from the list.

**3. Enter API token**

Paste the **API token** into the input field and click **Save**.

**4. Configure settings**

Select an **Account**, **Region**, **Time zone** and input the **AWIN commission %**.

**5. Repeat for additional accounts**

Repeat for all ad accounts whose cost data you would like to import.

**6. Save**

Click **Save**.

## UTM matching for campaigns

SegmentStream supports automatic UTM matching for Awin campaigns only when UTM parameters are defined inside the URL for each offer in your product feed. Otherwise, you will need to match Awin campaigns manually inside the SegmentStream admin panel.

By default, the following matching applies for `utm_source` and `utm_medium`:

* `utm_source` -- `AWIN`
* `utm_medium` -- `Publisher type`

This matching can be changed inside the admin panel by specifying appropriate values for the **UTM source**, **UTM medium mapping**, and **UTM campaign mapping** options.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.