UNPKG

@widergy/web-utils

Version:
26 lines (25 loc) 2.53 kB
import { UaEventOptions } from 'react-ga4/types/ga4'; import { AnalyticsUtils, customTracker, eventDataDefinition, EventDefinitions, GenericEventData, GenericObject, MixPanel, MixPanelEventData, TrackerArguments, Trackers } from './constants/analyticsInterfaces'; export declare const initializeGA: (analyticsTrackingId: string, options?: object) => void; export declare const sendGAEvent: (category: string, action: string, label?: string, value?: number) => void; export declare const sendGAPageView: (pathname: string) => void; export declare const setGAUserId: (userId: string) => void; export declare const createMiddleware: (eventDataDefinition: eventDataDefinition, customTracker?: customTracker, googleTracking?: boolean) => () => (next: any) => (action: any) => any; export declare const retrievePublicUserId: () => string; export declare const multiTracking: (trackerArgumentsArray: TrackerArguments[]) => (() => (next: any) => (action: any) => any)[]; export declare const singleEventMultitracking: (trackers: Trackers, eventDefinitions: EventDefinitions) => (name: string, eventData: GenericEventData) => void; export declare const singleGAEvent: () => (eventData: UaEventOptions) => void; export declare const singleInhouseEvent: (sendInhouseAnalytics: Function) => (eventData: GenericEventData) => void; export declare const singleArgosEvent: (sendArgosAnalytics: Function) => (eventData: GenericEventData) => void; export declare const singleMixpanelEvent: (mixpanel: MixPanel) => (eventData: MixPanelEventData) => void; export declare const mixpanelUserIdentify: (mixpanel: MixPanel) => (userProfileProperties: GenericObject, utilityId: number) => void; export declare const mixpanelPeopleSet: (mixpanel: MixPanel) => (userProfileProperties: GenericObject) => void; export declare const mixpanelSuperPropertiesRegister: (mixpanel: MixPanel) => (superProperties: GenericObject) => void; export declare const mixpanelGroupProfileSet: (mixpanel: MixPanel) => (groupKey: string, groupId: string | number, profileName: string) => void; export declare const mixpanelUserReset: (mixpanel: MixPanel) => () => void; export declare const intercomSingleEvent: (trackEventFunction: Function) => (eventData: GenericEventData) => void; export declare const intercomUpdateUser: (updaterFunction: Function) => (userProperties: GenericObject) => void; export declare const generateFlowId: () => string; export declare const generateEventId: () => string; declare const ANALYTICS_UTILS: AnalyticsUtils; export default ANALYTICS_UTILS;