Adding Tracking Code??

Discussion in 'Installation' started by trackbikes, Nov 2, 2011.

  1. trackbikes

    trackbikes Member

    Joined:
    Oct 29, 2005
    Messages:
    52
    I Need to add some code to track my conversions after payment through paypal and clickbank (using Spring metrics)

    Where do I add the code?

    Would it go directly on the thanks.php for clickbank and paypals ipn.php or elsewhere?


  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You should put it inside thanks.html template. aMember displays that template after payment.
  3. trackbikes

    trackbikes Member

    Joined:
    Oct 29, 2005
    Messages:
    52
    Is it ok to add the script below before all the other text in the thanks .html?/ (turned the first and last brackets around)

    >script type='text/javascript'>
    var _springMetq = _springMetq || [];
    _springMetq.push(['id', '6161b319cf']);
    (
    function(){
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.src = ('https:' == document.location.protocol ? 'https://d3rmnwi2tssrfx.cloudfront.net/a.js' : 'http://static.springmetrics.com/a.js');
    var x = document.getElementsByTagName('script')[0];
    x.parentNode.insertBefore(s, x);
    }
    )();
    </script<
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Sure ok. But better to place it after {include file="header.html"}
  5. trackbikes

    trackbikes Member

    Joined:
    Oct 29, 2005
    Messages:
    52
    Thanks....

Share This Page