Home > @yext/search-ui-react > AnalyticsProvider
A higher-order component which provides analytics for its children.
Signature:
export declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsConfig>): JSX.Element;
Parameter | Type | Description |
---|---|---|
props | PropsWithChildren<AnalyticsConfig> | The configuration for the analytics service |
Returns:
JSX.Element
A React element that provides analytics context