Appearance
Customer Login
identify()
Call after login or signup to link the customer to the affiliate session.
javascript
(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",
});
})();