Last click counts link cookies

Posted by user3636031 on Programmers See other posts from Programmers or by user3636031
Published on 2014-05-27T08:49:47Z Indexed on 2014/05/27 9:54 UTC
Read the original article Hit count: 300

Filed under:
|

I want to fix so my only the last click gets the cookie, here is my script:

<script type="text/javascript">
    document.write('<scr' + 'ipt type="text/javascript" src="' + document.location.protocol + '//sc.tradetracker.net/public/tradetracker/tracking/?e=dedupe&amp;t=js"></scr' + 'ipt>');
</script>

<script type="text/javascript">
    // The pixels.
    var _oPixels = {
        tradetracker: '<img id="tt" />',
        tradedoubler: '<img id="td" />',
        zanox: '<img id="zx" />',
        awin: '<img id="aw" />'
    };

    // Run the dedupe.
    _ttDedupe(
        'conversion',
        'network'
    );
</script>
<noscript>
    <img id="tt" />
    <img id="td" />
    <img id="zx" />
    <img id="aw" />
</noscript>

How can I get this right? Thanks!

© Programmers or respective owner

Related posts about source-code

Related posts about cookies