> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runconverge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Postback

> Send server-side conversions to any ad or affiliate network that takes a postback URL

## Overview

Destination Type: Server-side

The Custom Postback destination sends conversions to ad and affiliate networks that Converge has no native destination for, like NewsBreak or MediaGo. It works with any network that tracks conversions through a server-to-server (S2S) postback URL and a click ID.

1. Someone clicks your ad, and the network adds its click ID to your landing page URL.
2. The [Converge pixel](https://docs.runconverge.com/sources/website-integrations/converge-pixel.md) saves that click ID on the visitor's profile.
3. When the visitor converts, Converge calls the network's postback URL with the click ID, so the network can match the conversion to the click.

> [!NOTE]
>
> Check the [available destinations](https://docs.runconverge.com/destinations/overview.md#available-destinations) first. If Converge has a native destination for your network, use that one.

***

## Installation instructions

These steps use NewsBreak as the example. Every network has its own postback URL and click ID macro, but the steps are the same. See [Examples](#examples) for ready-made values.

**1. Get the postback URL and click ID macro from your network**

Look up two things in your network's postback (S2S) tracking settings:

1. The **postback URL**, where the network wants conversions sent. NewsBreak's looks like this:

   ```
   https://business.newsbreak.com/tracking/attribute?callback=<CLICK_ID>&event_type=<EVENT_TYPE>&nb_value=<CONVERSION_VALUE>
   ```

2. The **click ID macro**, the placeholder the network swaps for a click ID when someone clicks your ad. NewsBreak's is `__CALLBACK_PARAM__`.

**2. Add the click ID to your ad links**

1. In your network's ad settings, add the macro to the landing page URL of every ad, under a parameter name you pick (letters, digits and underscores only):

   ```
   https://www.yourstore.com/?newsbreak_cid=__CALLBACK_PARAM__
   ```

2. Note the parameter name (`newsbreak_cid` here). You'll enter it in Converge.

> [!WARNING]
>
> Pick a parameter name that only this network fills, and add it to every new ad as well. Converge can't send a postback for a click that arrives without it.

**3. Create the destination in Converge**

1. In the Converge sidebar, click on **Destinations** > Conversion tracking and then click **Create new destination**.

2. Select the **Custom Postback** destination and click **Next**.

3. Give your destination a **name** (e.g. NewsBreak Postback) and click **Next**.

4. Under **Click ID URL parameters**, click **Add** and enter the parameter name from your ad links (e.g. `newsbreak_cid`).

5. In **Postback URL**, paste your network's postback URL. Put your parameter name in double braces (`{{newsbreak_cid}}`) where the click ID goes and `{{value}}` where the conversion value goes, and fill in your network's name for a purchase:

   ```
   https://business.newsbreak.com/tracking/attribute?callback={{newsbreak_cid}}&event_type=complete_payment&nb_value={{value}}
   ```

   ![The Configuration step with newsbreak\_cid as the click ID URL parameter and \{\{newsbreak\_cid}} in the NewsBreak postback URL](https://mintcdn.com/converge/2g1WcVn0EIYalaEn/images/destinations/custom-postback/configuration.png?fit=max\&auto=format\&n=2g1WcVn0EIYalaEn\&q=85\&s=feb5f5928f2c53f5e5c4208ee2518d11)

6. Click **Next**.

7. Select **Use default mapping** and click **Next**. Converge then sends a postback when a visitor with a click ID places an order ([Placed Order](https://docs.runconverge.com/sources/converge-spec.md#placed-order)).

8. Select the pixel on your landing pages and the sources that send your orders, then click **Next**.

   > [!NOTE]
   >
   > Always include the pixel. It's the pixel that saves the click ID, even when your orders come from a server-side source.

9. Review any issues and click **Submit**.

**4. Check that postbacks arrive**

1. Click one of your ads and place a test order.
2. In Converge, open the destination and click **Logs**. The order is listed once Converge has sent the postback. Click it to see the event name, value and click IDs Converge sent.
3. Check that the conversion shows up in your network's reporting. Some networks accept every request, so their own report is the only proof that a conversion counted.

***

## Postback URL

Converge sends one `GET` request to your postback URL for each event, after filling in the placeholders.

| Placeholder | What Converge fills in | Example |
| :- | :- | :- |
| `{{<parameter>}}` | The visitor's click ID from one of your **Click ID URL parameters**, such as `{{newsbreak_cid}}`. Empty when the visitor has none for that parameter. | `nvss_fa2c907daf` |
| `{{event_name}}` | The name you gave the event in the [event mapping](#event-mapping). | `purchase` |
| `{{value}}` | The event's [conversion amount](https://docs.runconverge.com/destinations/conversion-amount.md) with two decimals. Empty when the event has no amount. | `49.90` |
| `{{<property>}}` | Any property of the event, such as `{{id}}` for the order ID or `{{currency}}`. Empty when the event doesn't have it. | `USD` |

The URL has to follow these rules, or Converge won't save it:

* Start with `https://` and your network's host name.
* Include every one of your **Click ID URL parameters** as a placeholder. The other placeholders are optional.
* Write each placeholder as `{{name}}`, without spaces, and replace your network's own macros (such as `{payout}`) with a Converge placeholder.

Type anything else your network asks for, like an account name or ad ID, straight into the URL. Converge escapes what it fills in, and any space or special character you type.

Converge doesn't follow redirects. If your network answers with a redirect, the event fails, so use the URL the network redirects to.

***

## Examples

> [accordion] NewsBreak
>
> * **Ad link parameter:** `newsbreak_cid=__CALLBACK_PARAM__`
> * **Click ID URL parameters:** `newsbreak_cid`
> * **Postback URL:**
>
> ```
> https://business.newsbreak.com/tracking/attribute?callback={{newsbreak_cid}}&event_type=complete_payment&nb_value={{value}}
> ```
>
> Create the postback event in NewsBreak's Ad Manager under **Tools** > **Event Management** first. The `event_type` in the URL has to match that event's name exactly, including upper and lower case. Leave out `nb_value` if you didn't turn on event value in NewsBreak.
>
> See the [NewsBreak postback guide](https://adhelp.newsbreak.com/hc/en-us/articles/46523993732365-NewsBreak-Postback-Integration-Generic-Integration).

> [accordion] MediaGo
>
> * **Ad link parameter:** `tracking_id=${TRACKING_ID}`
> * **Click ID URL parameters:** `tracking_id`
> * **Postback URL:**
>
> ```
> https://sync.mediago.io/api/bidder/postback?trackingid={{tracking_id}}&conversiontype=8&conversionprice={{value}}&accountname=your_account_name
> ```
>
> `conversiontype=8` is MediaGo's code for a purchase. Replace `your_account_name` with your MediaGo account name.
>
> See the [MediaGo postback guide](https://cdn.mediago.io/js/docs/platform/s2s-conversion-postback.html) for the other conversion types.

***

## Converge functionality

This integration supports the following Converge destination functionality.

| Converge Feature | Supported |
| :- | :-: |
| [Custom Events](https://docs.runconverge.com/destinations/event-mapping.md#event-mapping-modes) | |
| [Filters](https://docs.runconverge.com/destinations/filters.md) | |
| [Server-side Conversions](https://docs.runconverge.com/destinations/event-mapping.md#forwarding-modes) | |
| [Conversion amount](https://docs.runconverge.com/destinations/conversion-amount.md) | |

***

## Event mapping

Converge maps [Placed Order](https://docs.runconverge.com/sources/converge-spec.md#placed-order) to `purchase` by default. To send more events, let the event mapping decide the name in the URL:

1. Open your destination, click **Configuration**, and in **Postback URL** replace the fixed event name with `{{event_name}}`:

   ```
   https://business.newsbreak.com/tracking/attribute?callback={{newsbreak_cid}}&event_type={{event_name}}&nb_value={{value}}
   ```

2. Click **Save**, then open the **Event mapping** subtab and select **Use custom mapping**.

3. Click **Add new mapping**, pick the Converge event, and enter your network's name for it under **Name sent to the network**.

4. Click **Save**.

![A custom mapping that sends Placed Order as purchase and Started Checkout as checkout](https://mintcdn.com/converge/2g1WcVn0EIYalaEn/images/destinations/custom-postback/event-mapping.png?fit=max\&auto=format\&n=2g1WcVn0EIYalaEn\&q=85\&s=d8b34c28f0e9ebf0bbf8b130fb12912e)

> [!NOTE]
>
> You can only turn the default `purchase` mapping on or off. If your network uses another name for orders, turn it off and add your own Placed Order mapping.

***

## FAQ

> [accordion] Why is an event skipped?
>
> Converge skips an event when the visitor's profile has no click ID for any of the destination's **Click ID URL parameters**. That happens when:
>
> * The visitor didn't arrive through an ad from this network.
> * The ad's landing page URL is missing the click ID parameter, or uses a name that isn't in **Click ID URL parameters**.
> * The pixel on the landing page isn't one of the destination's sources.
> * The visitor clicked the ad before you created the destination.
> * The visitor hasn't given the consent your destination's [consent settings](https://docs.runconverge.com/destinations/consent.md) ask for.

> [accordion] Can I send more than one click ID?
>
> Yes. Add each parameter under **Click ID URL parameters** and put each one in the postback URL, such as `?cid={{network_cid}}&sub={{network_sub}}`. Converge sends the postback when the visitor has at least one of them, and leaves the others empty. So list only parameters this network fills: a parameter that other traffic carries too, like `gclid`, would send a postback for every visitor who has it.

> [accordion] Can two destinations use the same click ID parameter?
>
> Only when they send to the same network. Destinations that list the same parameter read the same click ID, so two different networks would receive each other's click IDs. Give each network its own parameter name.

> [accordion] How long does Converge keep a click ID?
>
> Converge keeps each click ID on the visitor's profile as `$postback_<parameter name>`, until the same visitor arrives with a new one for that parameter. So a visitor who clicks today and orders next week still gets a postback. Each parameter keeps its own latest value, so one postback can carry click IDs from different visits. Your network decides how old a click can be for it to count.

> [accordion] Why does Converge show Success while my network shows no conversion?
>
> Converge marks an event as `Success` when your network answers the request without an error. Whether the network counts it is up to the network. Open the event under **Logs**. Check that the event name Converge sent matches the one in your network, and that the click IDs are the ones your network handed out.

> [accordion] Can I send an order ID or currency?
>
> Yes. Put any event property in the URL as a placeholder, such as `{{id}}` for the order ID of a [Placed Order](https://docs.runconverge.com/sources/converge-spec.md#placed-order) or `{{currency}}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.