# How to Use to Send Conversions

> Learn how to use AnyTrack to send conversions to affiliate networks and track your performance accurately. Increase ROAS and optimize your marketing stack with this guide.

This guide is designed for AnyTrack customers who are merchants and work with affiliate networks. Learn how to set up AnyTrack to send conversion data to your affiliate network partners in real time. This will help you manage your traffic and compensate your partners for conversion events.

> ❗ ****
>
> This setup requires some technical knowledge and the ability to work with webhook providers like Zapier, or Make (formerly known as Integromat). If you're not familiar with Webhooks please forward this guide to someone that can do the job.

## Prerequisites

- AnyTrack tag installed on your website
- Conversion tracking set up in AnyTrack
- UTM parameters to identify the affiliate network and campaign
- Partner's Postback URL and conversion data documentation

### UTM Parameters

- `utm_source`: Affiliate network name
- `utm_medium`: Set to `referral`
- `utm_campaign`: Fill with `offer_id` or `campaign_id` from the affiliate network
- `utm_content`: Fill with `offer_name` or `promotion_name`

### Partner Postback URL

- ClickID parameter: Use syntax `x` + first two consonants of partner name + `clid` (e.g., MyAffiliate Network = `xmfclid`)
- Supported tokens: `transactionId`, `event_name`, `value`, `currency`

## Getting Started

This setup requires that you are already tracking conversions in AnyTrack. Track conversion data in AnyTrack before sending it to your partner.

1. Create a Zap with webhook catch in Zapier
2. Copy the webhook URL from Zapier
3. Create a webhook in AnyTrack and name it
4. Paste the Zapier webhook URL in AnyTrack
5. Select the conversion event to send to your partner and save
6. Send a test event to Zapier by clicking "Test" and testing the conversion flow as if clicking from your partner link (capture all relevant parameters including the partner ClickID)
7. Return to Zapier to view the data AnyTrack sent to the webhook
8. Add a branch and filter based on `utm_source`
9. Select the `utm_source` name you want to use and verify the filtered result
10. Add a webhook POST action in Zapier
11. Insert the postback URL from your affiliate network partner
12. Map the parameters according to the partner's requirements
13. Save your settings

Your AnyTrack setup is now complete and will send conversion data to your affiliate network partners in real-time. This will help you manage your traffic and compensate your partners for conversion events.

## Examples: Data Flow and URL Structure

Understand how data flows between your website, AnyTrack, and the affiliate network using these sample URLs.

**Campaign URL:**

The campaign URL provided to the affiliate network contains all necessary UTM parameters and the ClickID parameter. This example uses the Impact affiliate network:

```html
https://anytrack.io/partner?`utm_source`=impact&`utm_medium`=referral&`utm_campaign`=tracking+offer&utm_id=impact_0987&irclid={replacewithclickid}
```

**In this example:**

- `utm_source=impact` identifies the affiliate network as Impact
- `utm_medium=referral` sets the traffic medium as `referral`
- `utm_campaign=tracking+offer` contains the campaign or offer ID
- `utm_id=impact_0987` represents a unique campaign identifier
- `irclid={replaceWithClickId}` is the ClickID parameter from Impact

**Impact Postback URL:**

The postback URL provided by the affiliate network contains tokens for data points to pass back. These tokens are replaced with actual data from the AnyTrack webhook.

```http
https://postback.impact.com/data?irclid={replacewithclickid}&transaction_id={transactionId}&`revenue`={`revenue`}&currency={currency}
```

### Tokens in This Example

- `{replaceWithClickId}`: ClickID from the original campaign URL, replaced with the actual ClickID value
- `{transactionId}`: The transaction ID of the conversion event
- `{`revenue`}`: The `revenue` generated from the conversion event
- `{currency}`: The currency used in the transaction

### Data Flow

1. A user clicks the affiliate link containing your campaign URL
2. The user lands on your website and the AnyTrack tag captures UTM parameters and ClickID
3. When a conversion occurs, AnyTrack records the event and sends data to the Zapier webhook
4. Zapier filters the data based on `utm_source` (in this case, "impact")
5. Zapier passes filtered data to the Impact postback URL with tokens replaced by actual webhook data
6. The affiliate network receives the postback URL with conversion data and records the conversion

This flow illustrates how data moves between your website, AnyTrack, and the Impact affiliate network to track and report conversion events.

## Related Articles

- [Catch-All Events](/docs/catch-all-events)
- [Custom Conversion Source](/docs/custom-conversion-source)
- [Install AnyTrack Tag](/docs/install-anytrack-tag)
