InsightSearchAnalyticsActions (Deprecated)

This is for:

Developer
Warning

Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library.

The Insight Search analytics action creators.

Loader Function

loadInsightSearchAnalyticsActions

Loads the insight search analytics actions.

Parameters

  • engine: InsightEngine

    The insight engine.

Returns InsightSearchAnalyticsActionCreators: The Insight Search analytics action creators.

InsightSearchAnalyticsActionCreators

logContextChanged

The event to log when the context is updated.

Parameters

  • caseId: string

    The case ID.

  • caseNumber: string

    The case number.

Returns AsyncThunkAction<{ analyticsType: AnalyticsType.Search; }, void, AsyncThunkInsightAnalyticsOptions<StateNeededByInsightAnalyticsProvider>>: A dispatchable action.

logExpandToFullUI

The event to log when the full search page is opened.

Parameters

  • caseId: string

    The case ID.

  • caseNumber: string

    The case number.

  • fullSearchComponentName: string

    The name of the full search component to open.

  • triggeredBy: string

    The action that triggered the event.

Returns AsyncThunkAction<{ analyticsType: AnalyticsType.Custom; }, void, AsyncThunkInsightAnalyticsOptions<StateNeededByInsightAnalyticsProvider>>: A dispatchable action.