Logs an event with Inngage, where each parameter of the event is defined as a key-value pair within the data object.
To receive the event in Inngage, you must create a new event in the Inngage dashboard and ensure the event name matches the value of the eventName parameter.
Example:
const modules = await Eitri.modules();
const logEvent = modules?.inngage?.logEvent;
if (!logEvent) return;
await logEvent({
eventName: "event",
data: { appLanguage: "en-US" }
})
Object describing the event.
Object describing the event's data.
Name of the event.
Set of methods that allow Eitri shopping apps to interact with Inngage.