More stats!
We have added two new links in the Stats menu of affiliate area:
- Commission By Domain (https://stats.stimul-cash.com/#/stats/domain/) – shows you what domains (hosts) account for what traffic.
- Commission By Template ID (https://stats.stimul-cash.com/#/stats/template/) – show you what templates have been more effective by breaking down stats by template ID.
However, in order for these stats to work, you need to make some modifications to your shops. Read on:
You will have to modify php files in your script sets according to instructions below:
- For Extra Feed - based shops:
- File “/conf_add.php“, after this line of code:
define('SITE_ID', {your site id});add another line:
define('TMPL_ID', {your template number}); - File “/lib/click.php“, after line
$url .= '&query='.urlencode(@$_SESSION[BASKET]['query']);
add this code:
$url .= '&host='.urlencode(getenv('HTTP_HOST')); $url .= '&tmpl='.TMPL_ID;
- File “/conf_add.php“, after this line of code:
- For JAX - based shops:
- File “/config.php“, after line
'checkout_script' => 'https://my-secure-billing.com/checkout.php'
add this code:
, 'tmpl' => {your template number} - File “/.htclasses/Cart.class.php” in method send_click() of class Cart , array $keys add keys host and tmpl. The resulting line of code will look like this:
$keys=array('affiliate','ip','site_id','keywords','custom','referrer','uagent','query','sid', 'host', 'tmpl');
- File “/config.php“, after line








