UNPKG

@botonic/plugin-hubtype-analytics

Version:

Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord

18 lines (17 loc) 634 B
import { BotContext, Plugin } from '@botonic/core'; import { HtEventProps, RequestData } from './types'; export default class BotonicPluginHubtypeAnalytics implements Plugin { eventsBaseUrl: string; constructor(); post(): void; trackEvent(request: BotContext, htEventProps: HtEventProps): Promise<import("axios").AxiosResponse<any, any>>; getRequestData(request: BotContext): RequestData; private isLambdaEvent; private sendEvent; private sendBotEvent; private sendWebEvent; private sendWebEventByBotId; private sendWebEventByProviderId; } export * from './types'; export * from './utils';