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