Notifies all configured tracking / engagement SDKs about a user login.
See NotifyLoginInput. Only customerId is required;
known attributes go at the top level, arbitrary ones in extras.
const modules = await Eitri.modules();
const notifyLogin = modules?.session?.notifyLogin;
if (!notifyLogin) return;
await notifyLogin({
customerId: 'cust-12345',
email: '[email protected]',
phone: '11987654321'
});
Notifies all configured tracking / engagement SDKs that the user has logged out, clearing the user's identity from each one.
Promise that resolves to undefined once the notification has been dispatched.
Set of methods to notify external tracking & engagement SDKs about user session events (login/logout).
The single mandatory field is
customerId. The known user attributes are passed as top-level fields; any other data goes insideextrasas free-form key/value pairs.Every known field below is accepted and forwarded to all configured SDKs — send everything you have. The marker only tells you how the field lands in that SDK:
Keys you place in
extrasare also accepted as custom by Insider, Netcore, Dito, Inngage and Salesforce. OnlycustomerIdis required.Send each value once. If a known field is sent both at the top level and again under
extraswith the same key, theextrasvalue wins for custom data and the top-level one is dropped (the top-level value still feeds the native field on SDKs that have one). Duplicating a key like this is a misuse — prefer the top-level field for known attributes and reserveextrasfor keys outside this list.TikTok is used only for advanced matching: it receives
customerId,email,phone; the other known fields andextrasare not sent to it.Insider and Netcore additionally receive the user's age, but it is not a payload field — it is derived internally from
birthdayagainst the current date. Sendbirthdayand the age is computed for you.Salesforce Marketing Cloud has a single native identity field:
customerIdbecomes the SFMC contact key (profileId). Every other known field — and the keys inextras— is stored as a generic profile attribute under the field names in the table below. SFMC profile attributes are string-only, soextrasvalues are forwarded when they are strings or numbers (numbers are stringified); boolean and nested values are dropped for Salesforce.emailphonenamefirst_namelast_namebirthdaygendercitystatecountryzipcodestreetextras