• Function that allows you to view the CTR analytics for a dataset.

    Example:

    const data = await trieve.getCTRAnalytics({
    filter: {
    date_range: {
    gt: "2021-01-01 00:00:00.000",
    gte: "2021-01-01 00:00:00.000",
    lt: "2021-01-01 00:00:00.000",
    lte: "2021-01-01 00:00:00.000"
    },
    search_method: "fulltext",
    search_type: "search"
    },
    type: "search_ctr_metrics"
    });

    Parameters

    Returns Promise<CTRAnalyticsResponse>