# Monetise

> Learn how to connect Monetise affiliate management with AnyTrack for conversion tracking and reporting. Set up postback URLs and event mapping to track affiliate conversions and optimize your campaigns.

## Monetise Integration Overview

AnyTrack.io and Monetise have joined forces to provide powerful conversion tracking capabilities for marketers across all channels! With the integration, data is sent from Monetise directly to AnyTrack in real-time, allowing you to track your conversions accurately and efficiently. Once received by AnyTrack, it forwards the conversion data automatically to platforms like Google Ads, Facebook Conversion API or TikTok API - giving you an easy way of keeping up with performance metrics on different networks at a glance without having to manually configure each one separately. Get complete visibility into user behaviour & ad spend effectiveness today!

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You have an AnyTrack account with a paid subscription", done: true },
    { label: "You have an active Monetise Your Affiliate Networks - Increase ROAS account", done: true },
    { label: "The AnyTrack tracking tag is installed on your website", done: true },
  ]}
/>

### How does the Monetise 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 Monetise 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  | `monetise`     | 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 Monetise offer links.    | AnyTrack JS Tag |
| `Lead`          | When a free registration is recorded in Monetise. | Postback URL    |
| `Purchase`      | When a user generates a commission in Monetise.   | Postback URL    |

### The Monetise Postback URL

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

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

> ❗ ****
>
> The Monetise integration requires that the AnyTrack Tracking Tag in the `head` section of your website or landing pages. Learn now to [Install the AnyTrack Tag](/docs/install-anytrack-tag) on your website.

## Setup Guide

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

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

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

### Step #2: Connect your Monetise account

1. Copy the predefined Postback URL
2. Go to your [Monetise affiliate account](https://www.monetise.co.uk).
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 (ex: Facebook Conversion API)

***

## Validate your integration

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

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

Once the links are set up, you can check in your Monetise 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/monetise" data-tracking-group="cake">Hover on theMonetise Demo   
Link to see the AnyTrack `click_id`</a>
```

<HTMLBlock html={"\n<a href=\"https://example.foo/goto/monetise\" rel=\"cake\">Hover on the Monetise Demo Link to see the AnyTrack <code>click_id</code></a>\n"} />

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

### Conversion Tracking

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

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

**Monetise conversion payload example**

```json
{
  "s3": null,
  "s4": null,
  "s5": null,
  "campid": "11620",
  "price": "975.0000",
  "affid": "573",
  "oid": "658",
  "s1": null,
  "tid": "1101l2376077559",
  "s2": "Kb2z7tklyyUcKGrm3OBCwL8fXexfSptJ41",
  "cid": "13053"
}
```

***

## FAQ & Troubleshooting

* ### Can I import past conversions into AnyTrack?
  No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website.
* ### Can I track direct linking campaigns?
  Yes, but this requires a custom setup. Please refer to this [article](/docs/deeplink).
* ### Can I use a different `subid` parameter than the one predefined by AnyTrack?
  No.
* ### Can I track conversions without the `click_id`?
  No. The `click_id` passed to the Monetise links is required to track conversions.
* ### The Conversion Event Name is not what I am expecting, how can I change it?
  You can update the Event Mapping in the Integration page.

## Take these steps to troubleshoot errors you encounter in AnyTrack

* ### General troubleshooting
  * [ ] Verify that your tracking tag is set in the `head` section of your website.
  * [ ] If you're on the free plan, verify that you didn't reach the monthly traffic limit and [upgrade](https://dashboard.anytrack.io/billing) if needed.
* ### Conversion sources
  When you are not tracking conversions, or most conversions trigger an error follow the guidelines below.

<Callout icon="🚧" theme="warn">
  Before you reach out to the tech support, please inspect the [conversion log](/docs/integration-event-log) to see what type of errors you are getting and try to fix the integration by following these troubleshooting guidelines.
</Callout>

* ### Native integrations
  Native integrations refer to platforms that are predefined in the catalog and should provide an error-free data flow.
  The most common error is that the `click_id` is unknown or missing. It happens when AutoTag could not be activated.
  * [ ] Check that your links are not hidden behind some javascripts or double redirects.
  * [ ] Check that the links are in a standard `a` element.
  * [ ] Try to manually set the tracking group attribute (check the integration guidelines).
  * [ ] Check whether your offers are not getting traffic from websites where the AnyTrack Tag isn't set.
  * [ ] If you just installed AnyTrack, errors might be from traffic that wasn't tracked by AnyTrack.
  * #### Conversion data doesn't trigger an error 🔴, but is not validated 🟢:
    * [ ] Check that the Postback URL you've set in the integration matches the pre-defined Postback URL we provide.
    * [ ] Copy the Event Reference from the Conversion Event Log and contact the [support](/docs/contact-support).
  * #### You're not getting any conversions:
  * [ ] Check that the Postback URL is set and active in your platform.
  * [ ] Check that you're passing the correct AutoTag `s2` parameter to the offer link.
  * [ ] Check that the Postback URL is correctly inserted in the custom integration.
