Collection of functions responsible for tracking user activity in an Eitri-App using Dito SDK.

Dito is a CRM and engagement platform that provides event tracking, push notifications, and user identification capabilities.

Requirements: This feature must be enabled in the Eitri Shopping App native configuration

Methods

Methods

  • Logs an event with Dito SDK, where each parameter of the event is defined as a key-value pair within the data object.

    Supported value types for the data object are: string, number, and boolean.

    Example:

    const modules = await Eitri.modules();
    const logEvent = modules?.dito?.logEvent;
    if (!logEvent) return;

    await logEvent({
    eventName: "product_view",
    data: {
    revenue: 29.99,
    currency: "BRL",
    productId: "sku-001"
    }
    })

    Parameters

    • param: { data: Record<string, string | number | boolean>; eventName: string }

      Object describing the event.

      • data: Record<string, string | number | boolean>

        Object describing the event's data. Values must be primitives (string, number, or boolean).

      • eventName: string

        Name of the event.

    Returns Promise<undefined>