UNPKG

react-marketing-tools

Version:

React Marketing Tools are a set of tools to make it easier for you to implement analytics and track user journeys, interactions throughout your App. using dataLayer/Google Tag Manager, GA4 fetch directly or coming soon facebook pixel.

27 lines (26 loc) 1.74 kB
import { ReactNode, Context } from 'react'; import type { ProviderStateProps, ProviderApiProps } from './types'; export type { Event, GooglePayload, EventNameInfo, AllowedTypes, TrackAnalyticsEventOptions, GlobalVars, DataLayer, ConsoleLogData, AnalyticsTrackerDataOptions, HandleDataLayerPushOptions, ServerLocationData, IpInfo, Ga4GoogleAnalyticsEventTracking, Platform, AnalyticsPlatform, Tokens, Config, BuildConfigOptions, ProviderStateProps, ProviderApiProps, AnalyticsEventActionPrefix, AnalyticsGlobalEventAction, } from './types'; export { config, analyticsPlatform, buildConfig, showMeBuildInAnalyticsPlatform, showMeBuildInGlobalEventActionList, showMeBuildInEventActionPrefixList, } from './buildConfig'; export { trackAnalyticsEvent } from './analytics/analyticsEventService'; export declare const ContextState: Context<ProviderStateProps>; export declare const ContextApi: Context<ProviderApiProps>; type ReactMarketingProviderProps = { children: ReactNode; }; export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProviderProps) => import("react/jsx-runtime").JSX.Element; /** * @property {string} appName * @property {string} appSessionCookieName * @property {AnalyticsPlatform} analyticsPlatform * @property {AnalyticsEventActionPrefix} eventActionPrefixList * @property {AnalyticsGlobalEventAction} analyticsGlobalEventActionList */ export declare const useMarketingState: () => ProviderStateProps; /** * @property {function} trackAnalyticsEvent(options) * @property {function} showMeBuildInAnalyticsPlatform * @property {function} showMeBuildInEventActionPrefixList * @property {function} showMeBuildInGlobalEventActionList */ export declare const useMarketingApi: () => ProviderApiProps;