# Maxweb

> The Maxweb Integration with AnyTrack enables automatic tracking of online marketing campaigns by sending real-time conversion data from Maxweb to AnyTrack, which then forwards it to platforms like Google Ads, Facebook `Conversion API`, and TikTok API. This integration simplifies conversion tracking, allowing for accurate ROI measurement and enhanced digital marketing efforts. Key features include traffic data collection, event tracking, real-time conversion data processing, and integration with ad platforms for optimized campaign performance.

## Maxweb Integration Overview

Maxweb and AnyTrack together help you track your online marketing campaigns across multiple platforms.This makes tracking conversions easy so that you can measure ROI quickly and accurately.

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

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

### The Maxweb Postback URL

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

```http
https://t1.anytrack.io/hBtoE3hN/collect/maxweb?SUBID={SUBID}&SUBID2={SUBID2}&SUBID3={SUBID3}&SUBID4={SUBID4}&SUBID5={SUBID5}&ORDERID={ORDERID}&PRODUCT_CODENAME={PRODUCT_CODENAME}&COMMISSION_AMOUNT={COMMISSION_AMOUNT}
```

## Setup Guide

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

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

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

### Step #2: Connect your Maxweb account

1. Copy the predefined Postback URL
2. [Login](https://backoffice.maxweb.com) to your affiliate account.
3. Select the product promotion you want to track by clicking on the product name in the listing on your affiliate dashboard
4. Click on Settings
5. Select “Postback Tracking Tags” from the options.
6. Paste the postback URL
7. 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">
  ### 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 clicks 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 `subid` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags Maxweb 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="maxweb"` or `rel="maxweb"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&`subid`=--CLICK-ID--` to the offer link.

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

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

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

<HTMLBlock html={"\n<a href=\"https://example.foo/goto/maxweb\" data-tracking-group=\"maxweb\">Hover on the Maxweb Demo Link to see the AnyTrack <code>click_id</code></a>\n"} />

> 📘 **Tracking**
>
> Tracking Group refers to the integration technology. For example, Maxweb <Glossary>Tracking Group</Glossary> tracking group is `maxweb` and ClickBank is `ClickBank`. <Glossary>The Tracking Group</Glossary>

### Conversion Tracking

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

**Maxweb conversion payload example**

```json
{
  "affiliates_conversion_pixel_id": "2",
  "ORDERID": "123286",
  "SUBID": "xdASvl2wJTPaGbdQ6ZlaLQKpIrtXYBVN4y",
  "SUBID5": null,
  "SUBID4": null,
  "SUBID3": null,
  "SUBID2": null,
  "COMMISSION_AMOUNT": "100.00",
  "PRODUCT_CODENAME": "silencil"
}
```

***

<FaqAccordion
  title="FAQ and Troubleshooting"
  icon="fa-duotone fa-circle-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. Please refer to this <a href='/docs/deeplink'>article</a>."
    },
    {
      question: "Can I use a different <code>subid</code> parameter than the one predefined by AnyTrack?",
      answer: "No."
    },
    {
      question: "Can I track conversions without the <code>click_id</code>?",
      answer: "No. The <code>click_id</code> passed to the Maxweb 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.  "
    }
  ]}
/>
