Function that allows you to view the component analytics for a dataset.
Example:
const data = await trieve.getComponentAnalytics({ 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", }, }, granularity: "minute", type: "total_unique_visitors",}); Copy
const data = await trieve.getComponentAnalytics({ 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", }, }, granularity: "minute", type: "total_unique_visitors",});
Optional
Function that allows you to view the component analytics for a dataset.
Example: