# Convert2Media

> Learn how to integrate Convert2Media | AnyTrack with AnyTrack for automated affiliate conversion tracking. Set up postback URLs to track conversions and send data to your ad platforms for campaign optimization. Maximize your ROAS with advanced conversion tracking and attribution capabilities.

## Convert2Media Integration Overview

AnyTrack and Convert2Media have integrated to make conversion tracking easier than ever before. This makes it easy to track performance across multiple channels in real-time and optimize campaigns accordingly. With this powerful combination of tools, marketers are able to quickly get accurate insights on how their campaigns are performing so they can make informed decisions for future success.

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You have an AnyTrack account with a paid subscription", done: true },
    { label: "You have an active Convert2Media affiliate account", done: true },
    { label: "The AnyTrack Tracking Tag is installed on your website", done: true },
  ]}
/>

### How does the Convert2Media 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 Convert2Media 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  | `convert2media` | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `s2`            | 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 Convert2Media offer links.    | AnyTrack JS Tag |
| `Lead`          | When a free registration is recorded in Convert2Media. | Postback URL    |
| `Purchase`      | When a user generates a commission in Convert2Media.   | Postback URL    |

### The Convert2Media Postback URL

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

```http
https://t1.anytrack.io/hBtoE3hN/collect/convert2media?s1=#s1#&s2=#s2#&s3=#s3#&s4=#s4#&s5=#s5#&oid=#oid#&affid=#affid#&campid=#campid#&cid=#cid#&tid=#tid#&price=#price#
```

## Setup Guide

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

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for Convert2Media.

2. Now click on the [Convert2Media card](https://dashboard.anytrack.io/catalog/convert2media) and then click on Install.

### Step #2: Connect your Convert2Media account

1. Copy the predefined Postback URL.
2. Go to your Convert2Media affiliate account.
3. Navigate to the offer Testing and Tracking settings.
4. Paste the postback URL.
5. 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

This section will enable you to validate the main aspects of your setup.

<Callout icon='🔎' theme='default'>
  <p><strong>Install the AnyTrack Pixel Helper Extension</strong></p>
  <p>Install the <a href='https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn'>AnyTrack Pixel Helper</a> Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad platforms and browser-side events. <a href='/docs/anytrack-chrome-extension'>Learn more</a>.</p>
</Callout>

### Link tracking

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

### AutoTag Methods

<Callout icon='🔥' theme='default'>
  <p><strong>Reminder about AutoTag:</strong></p>
  <p><strong>AutoTag</strong> is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends <code>s2</code> &amp; <code>click_id</code> data to affiliate links. Learn <a href='/docs/autotag'>more about AutoTag</a>.</p>
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags Convert2Media 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="cake"` or `rel="cake"`. More about <a href='/docs/tgid'>Tracking Group</a>.
  * **Click ID Token:** Manually append the `s2` parameter: `&s2=--CLICK-ID--` to the offer link.

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

**Here is an example of how you would manually update links from `cake`:**

```html
<a href="https://example.foo/goto/convert2media" data-tracking-group="cake">Hover on the Convert2Media Demo Link to see the AnyTrack click_id</a>
```

<HTMLBlock html={"\n<p>Hover on the Convert2Media 👉 <a href=\"https://example.foo/goto/convert2media\" data-tracking-group=\"cake\"> Demo Link to see the AnyTrack click_id 👈</a> in action!</p>\n"} />

> 📘 **Tracking Group**
>
> Tracking Group refers to the integration technology. For Convert2Media, the <Glossary>Tracking Group</Glossary> value is `cake`.

### Conversion Tracking

To validate your setup, wait for a conversion or trigger a test conversion yourself and inspect the conversion logs.

**Convert2Media conversion payload example**

```json
{
  "AnyTrack": "1100l35864",
  "customer_type": "existing",
  "country": "US",
  "referer": "https://www.chewy.com/",
  "search_keyword": null,
  "search_engine_id": null,
  "conversion_time": "1684692689",
  "conversion_id": "1011l2002827904",
  "publisher_reference": "mz7yYainzaN6hkc52QVBg",
  "publisher_commission": "10.57",
  "creative_id": "0",
  "source_referer": null,
  "advertiser_reference": null,
  "conversion_type": "1",
  "creative_type": "0",
  "conversion_reference": "1354998698",
  "metadata_query_string": null,
  "currency": "USD",
  "tracking_method": "clickref",
  "value": "52.85",
  "items": [
    {
      "item_code": null,
      "item_id": "1011l860699483",
      "item_sku": "332503",
      "item_commission": "3.5720",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "3.5720",
      "item_meta": null,
      "item_status": "1",
      "item_value": "17.8600",
      "item_category": "11130",
      "item_vertical": null
    },
    {
      "item_code": null,
      "item_id": "1011l860699484",
      "item_sku": null,
      "item_commission": "0.0000",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "0.0000",
      "item_meta": null,
      "item_status": "1",
      "item_value": "0.0000",
      "item_category": "COMMISSION",
      "item_vertical": null
    },
    {
      "item_code": null,
      "item_id": "1101l859617416",
      "item_sku": "677350",
      "item_commission": "6.9980",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "6.9980",
      "item_meta": null,
      "item_status": "1",
      "item_value": "34.9900",
      "item_category": "2802",
      "item_vertical": null
    }
  ],
  "campaign_id": "1100l517",
  "query_string": null,
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
}
```

***

## Related Resources

- [FB Ads Affiliate Marketing](/docs/how-to-do-affiliate-marketing-on-facebook-ads)
- [Google Ads Affiliate Marketing](/docs/how-to-do-affiliate-marketing-on-google-ads)
- [Track Forms and Pass Click IDs](/docs/how-to-track-form-submission-and-pass-anytrack-clickid-to-an-affiliate-offer-link)

<FaqAccordion
  title="FAQ and Troubleshooting"
  icon="fa-question"
  items={[
    {
      question: "Can I import past conversions into AnyTrack?",
      answer: "No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website."
    },
    {
      question: "Can I track direct linking campaigns?",
      answer: "Yes, but this requires a custom setup. Refer to the direct link tracking article in the AnyTrack Knowledge Base for details."
    },
    {
      question: "Can I use a different subid parameter than the one predefined by AnyTrack?",
      answer: "No."
    },
    {
      question: "Can I track conversions without the click_id?",
      answer: "No. The click_id passed to the Convert2Media links is required to track conversions."
    },
    {
      question: "The Conversion Event Name is not what I am expecting. How can I change it?",
      answer: "You can update the Event Mapping in the Integration page."
    }
  ]}
/>

> 📘 **Direct link tracking**
>
> To track direct linking campaigns, follow the <a href='/docs/deeplink'>direct link tracking setup guide</a>.
