# Tracking Script


To display tracker feeds or perform actions, use KClient JS.

The tracking script is a small JS library that knows how to pass click and conversion information. It allows you to quickly connect Keitaro to the already working banding.

The code for connecting the script is available in Campaigns > Integrations.


  • It doesn't support splitting landing pages and redirects to a landing page.
  • Redirects are not supported.

# Usage


The script requires that site uses https.

  1. Open the Integrations tab on the campaign page.
  2. Select "Tracking Script" from the list and follow the instructions.

# Counting non-unique clicks

The tracking script counts only the first visit. You can turn on non-unique counting on the integration page or add _new=1 to the links.

Example: http://landingpage.com/?_new=1.

# Sending postbacks

# Using offers


In order for the scheme to work, the thread must contain the offers.

# Getting subid

# Advanced usage of KTracking.reportConversion

KTracking.reportConversion(payout, status, params, cb);
  • payout. The payout amount.
  • status. The conversion status (lead, sale, or rejected).
  • (Optional) params. The object with parameters (for example, {sub_id_1: 'order-form', sub_id_2: 'submit'}). The sub_id_1 to sub_id_15 parameters are supported.
  • (Optional) cb. The function which will be executed after sending data to the tracker (example, funtion(){ window.alert("Form sent")}).

# Examples

Send a sale conversion:

KTracking.reportConversion(0, 'sale');

Send with additional parameters:

KTracking.reportConversion(revenue, 'lead', {sub_id_1: 'johh@gmail.com', sub_id_2: 'John Smith'})

Send as rejected conversion:

KTracking.reportConversion(0, 'rejected');

Send as re-sale:

var tid = Math.floor(Math.random() * 1000000000);
KTracking.reportConversion(revenue, 'sale', {tid: tid})

tid must be unique.