The click analytics action creators.

interface ClickAnalyticsActionCreators {
    logDocumentOpen(result: Result): ClickAction;
    logOpenSmartSnippetInlineLink(
        payload: QuestionAnsweringInlineLinkActionCreatorPayload,
    ): ClickAction;
    logOpenSmartSnippetSource(): ClickAction;
    logOpenSmartSnippetSuggestionInlineLink(
        identifier: QuestionAnsweringUniqueIdentifierActionCreatorPayload,
        link: QuestionAnsweringInlineLinkActionCreatorPayload,
    ): ClickAction;
    logOpenSmartSnippetSuggestionSource(
        identifier: QuestionAnsweringUniqueIdentifierActionCreatorPayload,
    ): ClickAction;
}

Methods

  • The event to log when a result is selected.

    Parameters

    • result: Result

      The selected result.

    Returns ClickAction

    A dispatchable action.

  • The event to log when the source of a smart snippet is clicked.

    Returns ClickAction

    A dispatchable action.