Network filtering: implementing an LCC-script

When you are promoting your campaign through more than one affiliate network, it is we advise you to use a network filtering script. Without a filtering script, transactions can be processed by more than one network, causing you to pay for these transactions. We therefor advise you to link the transaction to the last click. This is also called the “last cookie counts” (LCC) principle.

You can easily implement network filtering by following these three steps:

If you want to deploy network deduplication using Google Tag Manager, please refer to Google's help centre for more information on setting the right triggers.

Step 1: Visitor registration

It's important to to register through which network a visitor entered your website. This visitor, for example, will be given a cookie with information from which network it originallcame from originally. You will need to communicate to the affiliate networks that they will need to give an extra (network) url-parameter to the visitor, so that this can be tracked.

In the following link you will see the 'referrer' in bold.

Through this parameter the cookie can be placed. The duration of the cookie will be set to the network standard, mostly 100 days (depends on the campaign).

Step 2: Implementing the LCC-script in the conversion pixel

When implementing network filtering, you'll need to place an adjusted conversion pixel on the “ thank you"-page. This pixel includes for example an LCC-script with information about your network preferences. If the script contains parameters related to the Daisycon network, then Daisycon's tracking pixel will be used.

Below you can see an example of a conversion pixel including the LCC-script.

<!-- -------------------------------- DO NOT ALTER THIS CODE IN ANY WAY ! --------------------------- -->
// Conversion pixel
$fromNetwork = $_COOKIE['network'];
$pixels = array(
'daisycon' =>'<img “”/>',
'network 2' =>'<img “>',
if (isset($pixels[$fromNetwork])) {
echo $pixels[$fromNetwork];
} else {
// Start catch all
($pixels as $pixel) {
echo $pixel;

<!-- -------------------------------------------------------------------------------------------------------------------------- -->

* This is a simplified representation of a deduplication script and will look different in practice.

Please note that it is important to include the 'catch all'-code. This means that when it is not possible to determine the source of a visitor, all conversion pixels of all networks will be used. Not implementing the catch all-code therefor has great consequences in measuring results.

Step 3: Measuring: essential to success in Affiliate Marketing

The script as shown above complies with the Code of Conduct of the PAN on correct filtering
of transactions. Our technical specialists work continuously on the development and refinement of measuring techniques. Measuring on the basis of cookies alone is becoming less and less reliable. Browsers have 'do-not-track' functions that in some cases are enabled by default. Consumers can also easily refuse, delete and sometimes use software to block or periodically delete cookies.

By offering affiliate networks the opportunity to apply other measurement methods, such as
for example, fingerprinting, you ensure an honest and accurate measurement. Using of a conversion pixel does not automatically mean that an order will also be placed. If the visitor is not recognized, then there is also no order registered.

To prevent an order from eventually being transferred to multiple networks, you can give transactions an additional parameter. For example, in the description. When using extra parameters, you can easily check all transactions that took place in case of a 'catch all'.


Back to top