fpr("init",{cid:"...",ref_id:"..."})
<script>(function (w) { w.fpr = w.fpr || function () { w.fpr.q = w.fpr.q || []; w.fpr.q[arguments[0] == 'set' ? 'unshift' : 'push'](arguments); }; })(window); function getQueryParameter(qParam) { var searchParams = new URL(document.location.toString()).searchParams; if (searchParams.has(qParam)) { return searchParams.get(qParam); } else { return null; } } var customRefValue = getQueryParameter("aff"); if (customRefValue) { fpr("init", { ref_id: customRefValue, cid: "xxxxxx" }); } else { fpr("init", { cid: "xxxxxxx" }); } </script> <script src="https://cdn.firstpromoter.com/fpr.js" async></script>
<script>(function(w){w.fpr=w.fpr||function(){w.fpr.q = w.fpr.q||[];w.fpr.q[arguments[0]=='set'?'unshift':'push'](arguments);};})(window); function getParam(param) { return new URLSearchParams(window.location.search).get(param); } var ref_id = getParam("sa"); if (ref_id) { fpr("init", { ref_id, cid: "xxxxxx" }); } else { fpr("init", { cid: "xxxxxx" }); } fpr("click"); </script> <script src="https://cdn.firstpromoter.com/fpr.js" async></script>
fpr("referral",{email: getParam("wj_lead_email")}, function(){ window.fpr("click",{cookie_ref_id: 'xxx'}); });
<script>(function(w){w.fpr=w.fpr||function(){w.fpr.q = w.fpr.q||[];w.fpr.q[arguments[0]=='set'?'unshift':'push'](arguments);};})(window); fpr("init", {cid:"…"}); fpr("click",{cookie_ref_id: 'xxx'}); </script>
<script> function getParam(param) { return new URLSearchParams(window.location.search).get(param); } (function (w) {w.fpr = w.fpr || function () {w.fpr.q = w.fpr.q || []; w.fpr.q[arguments[0] == 'set' ? 'unshift' : 'push'](arguments);};})(window); var hasTid = document.cookie.indexOf('fprom_tid=') > 0; var hasRefId = document.cookie.indexOf('fprom_ref=') > 0; if ((!hasRefId || !hasTid) && !getParam('fpr')) { var ref_id = "pm"; fpr("init", {ref_id, cid: "xxxxxx"}); } else { fpr("init", {cid: "xxxxxx"}); } fpr("click"); </script> <script src="https://cdn.firstpromoter.com/fpr.js" async></script>