Customer Login / Sign-Up Page — identify()
Call after a customer logs in or signs up to link them to the affiliate session.
<script>
(async function () {
await new Promise(function (resolve) {
if (window.AffiliateSDK) return resolve();
var interval = setInterval(function () {
if (window.AffiliateSDK) { clearInterval(interval); resolve(); }
}, 50);
});
await window.AffiliateSDK.identify({
email: "customer@example.com", // Replace with the logged-in customer's email
});
})();
</script>