# FlexOffers

> The article provides an overview of the integration between FlexOffers and AnyTrack, highlighting its ability to enhance advertising campaign management for marketers. This integration allows FlexOffers publishers to track, measure, and optimize marketing performance in real-time by sending conversion data directly to AnyTrack platform, which can then be shared with various ad platforms like Google Ads and Facebook. The integration aims to maximize ROI and save time by providing detailed insights and facilitating automatic optimization through ad platforms machine learning capabilities.

## FlexOffers Integration Overview

FlexOffers and AnyTrack have joined forces to provide marketers with a powerful solution for managing their advertising campaigns. Our integration allows FlexOffers publishers to track, measure and optimize the performance of their marketing activities in real-time by sending conversion data from FlexOffers directly into AnyTrack's platform.

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

### How does the FlexOffers 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 FlexOffers 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 API Integration.
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  | `flexoffers`      | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `fobs`            | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `API Integration` | -                                                                                  |

### Standard Conversions

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

### The FlexOffers API Integration

The API Integration is fully pre-defined and ready to be implemented with your FlexOffers account.

```http
```

## Setup Guide

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

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

<Image align="center" className="border" border={true} src={readmeAsset1} />

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

{/* Removed broken prohelp.com.ua image: https://prohelp.com.ua/tmp/flexoffers/login.jpg */}

### Step #2: Connect your FlexOffers account

1. Navigate to the [FlexOffers API Section](https://publisherpro.flexoffers.com) to generate your API key.
2. Copy the API key (ctrl+C)
3. Return to the AnyTrack settings and Paste the API key in the field
4. 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`)

{/* Removed broken prohelp.com.ua image: https://prohelp.com.ua/tmp/flexoffers/actions.jpg */}

***

## 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>

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

### 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 `fobs` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

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

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