# 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:

function updateParams($params) {
    $subId = isset($_REQUEST['subid']) ? $_REQUEST['subid'] : null;
    if (isset($_REQUEST['_subid'])) {
      $subId = $_REQUEST['_subid']
    }
    file_get_contents('https://TRACKER_DOMAIN/?_update_tokens=1&sub_id=' . urlencode($subId)) . '&' . http_build_query($params);
}
1
2
3
4
5
6
7

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().

# Alternatives

Keitaro updates the parameters in other endpoints:

  • Alternatives