@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
19 lines (18 loc) • 655 B
TypeScript
import { BotContext, Plugin } from '@botonic/core';
import axios from 'axios';
import { HtEventProps, RequestData } from './types';
export default class BotonicPluginHubtypeAnalytics implements Plugin {
eventsBaseUrl: string;
constructor();
post(): void;
trackEvent(request: BotContext, htEventProps: HtEventProps): Promise<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';