Updating parameters
That code is compatible with Local landing pages and offers.
Paste this code to the index.php. From the first line before all other code:
<?php
function updateParams($params, $rawClick) {
$subId=$rawClick->getSubId();
if (!empty($subId)) {
$result = file_get_contents('http://TRACKER_DOMAIN/?_update_tokens=1&sub_id=' . urlencode($subId) . '&' . http_build_query($params));
}
}
updateParams(array(
'sub_id_1' => 'QWE',
), $rawClick);
?>
1
2
3
4
5
6
7
8
9
10
11
12
Change TRACKER_DOMAIN to the real tracker's domain.
To update multiple parameters at once, add the necessary key=>value pairs to the column, separated by commas:
'sub_id_1' => 'QWE',
'sub_id_2' => 'ASD',
'sub_id_3' => '123',
1
2
3
When you click on the campaign link, the script will trigger and update the parameters set in updateParams().
WARNING
The provided script updates the sub_id_1 — sub_id_30 parameters. Changes are applied only to reports and do not affect URL parameters.
When updating parameters via a postback, the data is updated simultaneously in both the click and conversion logs, including the External ID if it is received with the postback.
Alternatives
Keitaro updates the parameters in other endpoints: