Tracking pixel logic for Magento based on referral url parameter stored in a cookie 

This prevents double commissions on multiple affiliate networks.