# Affiliate Networks in Keitaro

The algorithm of interaction between Keitaro and affiliate networks:

  1. Affiliate network offers are placed in the tracker campaigns, the tracker sends traffic to the offers.

  2. When the conversion occured, the affiliate network sends postback to the tracker so that the tracker collects statistics conversions, and displays reports.

In the tracker, each affiliate network is separated into a template with the necessary data for postback settings. To receive statistics from an affiliate network it is necessary to set up Postback properly.

# Adding Affiliate network to Keitaro

An affiliate network is creating from the tracker template in section Affiliate Networks — Create. All templates are added by documentation or direct request of representatives of corresponding partner networks.

Template is connecting to Type Redirect offer to automatically pass the value of Keitaro Click ID subid to the affiliate network. The affiliate network takes subid and passes it as a Postback parameter when conversion occurs. This is a mandatory criterion for proper Postback setting.

  • Template name. Check needed one among already prepared templates.

  • Name. Affiliate network name in tab Affiliate networks in Keitaro.

  • Offer parameters. Parameters that must be added to each offer URL. Example, &sub1={subid}&sub2={ip}. sub1 is parameter which transfer to affiliate network the unique value of tracker click ID subid, which takes from {subid} placeholder. This is a neccessarily placehoder to transfer to affiliate network, to receive it back in postback. Other placeholders are optional, such as sub2 which transfers click IP in example.

  • Postback URL. The affiliate network sends conversions to the tracker using this link. Add the link in the affiliate network's private cabinet in the Global Postback field. All postbacks of this affiliate network will be sent to the tracker at the specified address.

TIP

This field and link in the template is a note for user convenience. Used for a quick copy-and-paste, like a proper ready-made solution. Does not affect the settings within the tracker. It is not recommended to change data without a direct instruction from representatives or documentation of affiliate networks, or Keitaro support.

# How to create new template

  1. Go to the Affiliate Networks page, click on the Create button, you will get the first part of a Postback URL:

Add a question sign after postback:

https://cpamaraphon.xyz/8547479/postback?

  1. Go to your affiliate network and get the list of the following parameters:
  • Parameter for the Click ID
  • The list of the conversion statuses
  • The list of other available parameters in this affiliate network
  • Payout currency.
  1. If there’s no reserved Click ID parameter in the affiliate network you are adding, you can use any of the sub parameters or empty parameters from an affiliate network that you can use on your own.

An example. TrafficHunters has a reserved parameter for a Click ID {aff_click_id}:

We need to add his parameter will go to Offer parameters in Keitaro affiliate network settings, so that we send our Keitaro {subid} in this parameter, and an affiliate network will send back our subid value, the settings look like the following:

In the Offer Parameters field, we send our subid value to {aff_click_id}, and in a Postback URL we get back our subid value from {aff_click_id}.

  1. Add a parameter for a conversion status. It’s {status} in Keitaro and {status} in an affiliate network in this case.

The names of the statuses can be any, but all these statuses must be connected with Keitaro statuses. Read status transformations page.

So now the Postback URL looks like the following:

https://cpamaraphon.xyz/8547479/postback?subid={aff_click_id}&status={status}

  1. The only required parameter is {subid}, we recommend also adding a payout sum, the currency of a payout, and from which network you got a conversion. For example:

https://cpamaraphon.xyz/8547479/postback?subid={aff_click_id}&status={status}&payout={amount}&currency=usd&from=example

So our finally added affiliate network will look like this:

Next, use our video guide about postbacks with template.

How to add a new template to Keitaro?

Send email to support@keitaro.io with following details:

  • Name of the affiliate network.
  • URL of instructions on how to set up postback.
  • Currency.
  • Available parameters for offer links.