Collection of functions responsible for tracking an user's activity in an Eitri-App using Facebook App Events.

Methods

Methods

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

    Make sure the event name you send here matches one that is configured in the Meta/Facebook analytics dashboard so that it is captured correctly.

    Example:

    await Eitri.exposedApis.facebook.logEvent({
    eventName: "event",
    data: { page: "/Playground", authenticated: true }
    })

    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>