1. Please add this script to your HOMEPAGE FOOTER and any other entry page (ex: product pages, alternative landing pages).
    • If you’re using Google Tag Manager, you can have this script appear on all source codes pages.
<script>
(function () {
var clickRe = /(?:\d+FOF\d+)/i;
var match = clickRe.exec(window.location.href);
if (match && match.length > 0) window.localStorage.setItem('sid', match[0]);
    })();</script>

  1. Please add this script to your ORDER CONFIRMATION PAGE
  • Add account unique ID in the AID parameter found inside your account.
    • Please email your account manager to request it if needed.
  • Add Sale Amount code in the AMT parameter (only required for CPS programs)
  • Add Order ID code in the UID parameter (required for all programs)
<script>
(function () {
var sid = window.localStorage.getItem('sid');
var req = new XMLHttpRequest();
req.open('GET', 'https://track.flexlinks.com/conversiontracking.ashx?AID=XXXXXXXXXX-XXXXXXX-XXXXXXXXXXX-XXXX-XXXX&AMT=XXXX&UID=XXXX&SID=' + sid);
req.send();
})();
</script>

  1. Once implemented, please email your account manager to request a test link.