Set of methods that allow Eitri shopping apps to interact with Inngage.

Methods

Methods

  • 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" }
    })

    Parameters

    • param: { data: Record<string, any>; eventName: string }

      Object describing the event.

      • data: Record<string, any>

        Object describing the event's data.

      • eventName: string

        Name of the event.

    Returns Promise<undefined>