Target group Name Version Version info Implementation steps Last modified
affiliate General All Custom clickout script Using a custom clickout script

As affiliate you can easily create a custom click out script which enables you to easily handle all kind of events like for example click registration or forwarding users from a secure (https) environment to a non-secure location.

In a PHP environment for example, you can create a page containing the following code:

<?php
if (!empty($_GET['url']))
{
// Your custom code here, e.g. click registration.
$x = new ClickHandler();
$x->saveClickToDatabase($_GET['url']);

// When done, forward to the requested location.
exit(header('Location: ' . $_GET['url'], true, 301));
}
?>

In this example a file called clickout.php is created and placed in the root folder of the website.

Links on your website would eventually look like:

<a href="https://yourwebsite.com/clickout.php?url=http%3A%2F%2Ftc.tradetracker.net%2F%3Fc%3D27%26m%3D0%26a%3D1">Clickout</a>
Please note that the value of the "url" parameter should always be URL-encoded according to official standards.
Shortlink to this article: https://sc.tradetracker.net/implementation/overview?f[id]=38
05-Dec-2014 09:02:33