User Tools

Site Tools

Translations of this page:


Documentation index


CJ Settings

Most of the options here are quite clear and don’t need additional explanation. But still some of them need detailed discussion.

Counted clicks Max – the maximum amount of clicks, which can be counted to 1 serfer. That means that the following clicks go to where they have to be sent but are not reflected in the statistics.

Next click is a click number – click number, which has to be counted as Next Click column (Second Click)

Header Check - this feature could help you to find some stupid cheaters or get some extra stats. When user's browser requests a page from your site it sends a some info about itself, script can collect and analyze this data. For example, most browsers support gzip encoding (html page compression) while some cheater\proxies dont. Select Settings→CJSEttings→Header field checks = Accept Gzip Encoding. You can also select Server Protocol and charset. Advanced user can select any field from header (click Advanced )

Trade Formula – a formula, thanks to which script finds out the priority of each trade, it’s needless to say that the higher priority is, the higher is the possibility of the trader to get a hit. So all the traders are divided according to several parameters. Some formulas created by both users and programmers can be seen here. Trade Formula

Default Firstclick - First Click, notice each trader has a personal setting for this and it has a priority.

Cookie lifetime – cookie lifetime in seconds, 86400 – 24 hours. Script counts surfers based on cookies. If user visits our site again within 24H - it's a raw hit, in other case - unique.

Top position keywords – keywords divided with comma to find out your position in trader’s top. Top Positions

Admin Auto Refresh – to refresh Trade screen automatically through the mentioned amount of seconds.

System email - email used by script to send urgent messages to you. This email isnt shown anywhere except admin area.

Check main pages changes - this feature aimed agian server hacks. Script check pages from Settings → CJPages and if those page had been changed , script sends email to “System email”.

System proxy a proxy server used for all script's request outside server (alexa stats, top position and so on)

Advanced TOP settings parameters for toplists, take a look at Toplist

Processed Data - data types that will be logged by script. Actually you should take a took at this only if your site 5M+… anyway, if your database has a problem with perfomance - let me know.

Extra Traffic Settings actually in 99% of cases you don't need to change anything here. Lets take a look at what we have here..

ExtraHits URL - if server already clicked all of your trades he will be sent to exout url, his cookies will be deleted and he will start акь the very beginning. Actually happens only if you have something like 5 traders.

Send exout to traders - should we send serfer to traders who owe us ?

Send exout to galleries - should we send those very active clickers always to galleries ?

URL to add to galleries - an addition to gallery URL. For example, you have a list of webmaster's galleries but you want to open in new window with you ads at the top. Here is how you can do that:

Let's say you have out link

<a href="/out.php?url=http://webmaster/gallery.html"> Webmaster's gallery </a>

so when you click it script sends you to http://webmaster/gallery.html

First of all you create a new php file, let's say frame.php (put it at the root of your domain)

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="http://yourdomain/your_adds.html" name="topFrame" scrolling="NO" noresize>
  <frame src="<?=$_GET['url']?>" name="mainFrame">

This file creates a frameset with your ads at the top (80px) and webmaster's gallery.

Set 'URL to add to galleries' to


and script will send you to (using our example)


Send exout to galleries (ie if surfer has visited all your trades - send him to galleries all the time)


You can edit templates of different pages, the most interesting one is wm_signup.tpl – it’s a signup template for traders.

Config Files

You can edit config files for example, user agents scrips uses visiting other sites, languages, list of SE domains (to detect SE hits) and so on. In most cases you dont need to change anything here :)

Adding a trade

Actually all things here exectly the same as at Edit Traders but pay attention to Settings → NewTrader item - every new trader will get these settings by default.

First Click

This is very usefull parameter if you operate TGP site. First clicks means that if surfers clicks on a link with content

for example, out.php?url=

and this is his first click on your site - script always sends him to content..

There are several ways to setup this option

  1. link out.php?url=somethings&fc=1. Note fc=1 parameter.
  2. Settings/ CJ Settings - Default First click , first click by default for everything
  3. Personal settings for each trader (personal first click (Edit traders))
  4. Personal Trade Scheme Edit traders

Second Click

This parameter shows % of surfers who does more then 1 (or 2,3 and so on) clicks.

Setup parameter `Next Click` in CJ Settings (it's 2 by default), add column 'Show next click' in CJ Settings → Display Config.

Top Positions

Script uses this data to determinate your position in trader's top. Usually you can see description of your site od your domain name in trader's top, so that's what you have to write down in this field (comma separated), for example : Best Free Site,

Out settings

Imagine the site that has one very strong trade and the rest of the trades are so-so. According to the priority this site will always be on the top position, whereas the rest of the sites will get the second, third and other positions. This trade will get almost all hits. To avoid this situation out settings exist. We take for example first 10 traders in the line to get a hit and we give a hit to one of this 10 at random. But to follow the priority ( the trader which is higher in the list is more likely to get a hit than a trader placed lower in this list) we set as chance to get a hit for each of position. For example, trader at the first place gets 50% change to get a hit, second place - 30%, third - 10 and so on.

Trade Activation

Activates traders if it meets all conditions.

Note: System activates traders from status 'No, till trade activation' ONLY.


Blacklist protects you from registration from domains you wouldn’t like to trade with. Here the usage of * is permitted.

For example

  • * - to forbid registration from any domains subdomains
  • *.*.com - to forbid registration of domains of the 3rd level.

Banned IPs - to forbid registration from the mentioned IP. Some cheaters are not tired of registering new domains from the same IP every day.

Banned URLs and Banned Words - take a look at Rotation Graber

Quality Settings

To get a full quality assessment of the traffic from trader Quality Settings exist. For example, if a trader sends you Chinese or Russian traffic you can not count such clicks or count them with discount. You can also do the same thing when counting clicks through proxy and with JS turned off.

Example. A trader sent a serfer that has made 10 clicks, all these clicks go through proxy (Proxy Discount– 20%).That means that only 8 (10 clicks – 20%) clicks will be counted to the trader.

In our case we’ve decided that China (ch) and Russia (ru) - are the less solvent countries and would like to give less to traders, sending such traffic. In our example we’ll estimate a user’s page by browser’s language. This is the variable - HTTP_ACCEPT_LANGUAGE. Insert

Env. variable name  = HTTP_ACCEPT_LANGUAGE.

Add Quality Set:
Value = ru
Discount % = 30

Serfers with Russian languauge will be counted with 30% discount.

You can also see Skimming Parameter - this is personal skimming for those conditions. Ie if you have

Value = ru
Discount % = 30
Skimming  = 40

it means if someone comes this language RU his clicks will be counted with 30% discount and default skiming will be 40%.

Skimming 101 means 'do not use this value', ie use &p= or Settings→CJSettings : Default Skimming

CJ Pages

This is a list of your main pages. Take a look at Start Here

Gallery domains whitelist

Usually your links look like out.php?url=… so if anybody adds something into those URLs he can get it redirected to any location for example http://yoursite/out.php?url=http://malware/

That's the reason to use Gallery domains whitelist, so you can have a list of domains where out.php can send to. If that list if empty - out.php sends to any location, if the list is not empty - it sends to traders and whitelisted domains only.

Notrade (Feeders)

There are basically some ways to deal with new traffic (Settings → Processed Data → Process Refs)

  • Just count it as Notrade traffic
  • Add each new domain as a new trade (so we can track stats for each domain). We add such traders as * so this new trade would count traffic for each subdomain like, and so on
  • Lets say we buy some traffic at a broker and it comes from a lot of domains. In this case we can add 1 domain and send traffic to http://my_domain/? - so we can track how much traffic we get from the broker in total. To track hits from each domain within this broker we can add tjose domains as subfeeders of so it's gonna be just 1 line ( in Trade screen) but when you click at S next to you'll see a tab called subfeeders with all domains you get traffic from via this broker.

At this point you also have 2 options: to add as * or to add each subdomain as

So if you get traffic let's say from and - you can count it as total if you add as * or as separately for each subdomain.

settings.txt · Last modified: 2020/06/15 07:22 by admin