# TravelPayouts

> Learn how to integrate Travelpayouts with AnyTrack for automated conversion tracking. Set up postback URLs to track affiliate conversions and send data to your ad platforms for campaign optimization.

### How does the TravelPayouts AnyTrack integration work:

1. **Traffic**: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
2. **Engagements**: When visitors click on your TravelPayouts affiliate links, AnyTrack does a few things:
   1. Collects granular data tied to the `OutboundClick`.
   2. Triggers Event Tracking API requests to your Tracking Tags and analytics.
3. **Conversions:** When visitors convert on the merchant's website, AnyTrack receives real time conversion data through Postback URL.
4. **Attribution:** AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
5. **`Conversion API`:** AnyTrack then sends your conversions to your **Ad Platforms' `Conversion API`** so you can feed your ad platform's Machine Learning, AI and automatic optimization according to 100% of your conversion data.

### Technical details

| Reference       | Value           | Information                                                                        |
| --------------- | :-------------- | :--------------------------------------------------------------------------------- |
| Tracking Group  | `travelpayouts` | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `shmarker`      | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `Postback URL`  | -                                                                                  |

### Standard Conversions

| Event Name      | Details                                                | Data Source     |
| :-------------- | :----------------------------------------------------- | :-------------- |
| `OutboundClick` | When a visitor clicks on TravelPayouts offer links.    | AnyTrack JS Tag |
| `Lead`          | When a free registration is recorded in TravelPayouts. | Postback URL    |
| `Purchase`      | When a user generates a commission in TravelPayouts.   | Postback URL    |

### The TravelPayouts Postback URL

The Postback URL is fully pre-defined and ready to be implemented with your TravelPayouts account.

```http
https://t1.anytrack.io/hBtoE3hN/collect/travelpayouts?marker=%{marker}&additional_marker=%{additional_marker}&bookingId=%{bookingId}&price=%{price}&profit=%{profit}
```

## Setup Guide

### Step #1: Add TravelPayouts to your AnyTrack Account

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for TravelPayouts.
2. Now click on the [TravelPayouts card](https://dashboard.anytrack.io/catalog/travelpayouts) and then Click on Install.

### Step #2: Connect your TravelPayouts account

1. Copy the predefined Postback URL.
2. Send it to your affiliate manager.
3. Save.

### Step #3: Adjust the Conversion Event Mapping

The Event Mapping allows you to define which events to track and map them to Conversion Events you will forward to your Ads Integrations (e.g., Facebook `Conversion API`)

***

## Validate your integration

<Callout icon="🔎" theme="default">
  ### Install the AnyTrack Pixel Helper Extension

  Install the [AnyTrack Pixel Helper](https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn) Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad platforms and browser-side events. [View the Pixel Helper guide](/docs/anytrack-chrome-extension).
</Callout>

### Link tracking

Since Tracking starts when visitors click on offer links, you verify that your links are tracked and AutoTagged.

### AutoTag Methods

<Callout icon="🔥" theme="default">
  ### Reminder about AutoTag:

  **AutoTag** is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends `shmarker` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags TravelPayouts links found on your website.
* **AutoScan**: AnyTrack scans links that are embedded in redirects plugins and AutoTags them accordingly.
* **Manual**:
  * **Tracking Group Attribute**: You add the tracking group attribute to links according to their tracking requirements. For example: `data-tracking-group="travelpayouts"` or `rel="travelpayouts"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&shmarker=--CLICK-ID--` to the offer link.

Once the links are set up, you can check in your TravelPayouts account reports and see whether the `shmarker` parameters are passed to the offer links.
