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:

    await Eitri.exposedApis.inngage.logEvent({
    eventName: "event",
    data: { appLanguage: "en-US" }
    })

    Parameters

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

      Object describing the event.

      • eventName: string

        Name of the event.

      • data: Record<string, any>

        Object describing the event's data.

    Returns Promise<undefined>