📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
add: api endpoint
kruzhambusc7b3a9da8b54
diff --git a/src/api/index.ts b/src/api/index.tsindex 4bcc9168a..c67bad3f8 100644--- a/src/api/index.ts+++ b/src/api/index.ts@@ -901,3 +901,23 @@ export const deletePartially = (id: string, data: {? error.response.data: error.response.data.message})++export const getUserFlow = (+ pid: string,+ tb: string = 'hour',+ period: string = '3d',+ from: string = '',+ to: string = '',+ timezone: string = '',+) =>+ api+ .get(+ `log/user-flow?pid=${pid}&timeBucket=${tb}&period=${period}&from=${from}&to=${to}&timezone=${timezone}`,+ )+ .then((response) => response.data)+ .catch((error) => {+ debug('%s', error)+ throw _isEmpty(error.response.data?.message)+ ? error.response.data+ : error.response.data.message+ })