Skip to content

📈 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!

fix lints

Blue Moused5f3cedc73ab
diff --git a/backend/apps/cloud/src/analytics/interfaces/index.ts b/backend/apps/cloud/src/analytics/interfaces/index.ts
index 65093b0dd..31d80943e 100644
--- a/backend/apps/cloud/src/analytics/interfaces/index.ts
+++ b/backend/apps/cloud/src/analytics/interfaces/index.ts
@@ -91,19 +91,14 @@ export interface IJourney {
continuedPast: number
}
-export interface IJourneyLengthBucket {
- len: number
- sessions: number
- truncated: number
-}
-
export interface IJourneys {
journeys: IJourney[]
// multi-page sessions only (single-page bounces produce no transitions)
totalSessions: number
// distinct paths before the top-N ranking was applied
totalPaths: number
- lengthHistogram: IJourneyLengthBucket[]
+ // how many sessions have a (sliced) path of each length
+ lengthHistogram: { len: number; sessions: number; truncated: number }[]
}
export interface IJourneyNodeDetails {
diff --git a/backend/apps/community/src/analytics/interfaces/index.ts b/backend/apps/community/src/analytics/interfaces/index.ts
index c5c9f0a90..ccd1337a2 100644
--- a/backend/apps/community/src/analytics/interfaces/index.ts
+++ b/backend/apps/community/src/analytics/interfaces/index.ts
@@ -83,19 +83,14 @@ export interface IJourney {
continuedPast: number
}
-export interface IJourneyLengthBucket {
- len: number
- sessions: number
- truncated: number
-}
-
export interface IJourneys {
journeys: IJourney[]
// multi-page sessions only (single-page bounces produce no transitions)
totalSessions: number
// distinct paths before the top-N ranking was applied
totalPaths: number
- lengthHistogram: IJourneyLengthBucket[]
+ // how many sessions have a (sliced) path of each length
+ lengthHistogram: { len: number; sessions: number; truncated: number }[]
}
export interface IJourneyNodeDetails {
diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.ts
index c6c1f28bb..18c1893b1 100644
--- a/web/app/api/api.server.ts
+++ b/web/app/api/api.server.ts
@@ -1707,12 +1707,6 @@ interface Journey {
continuedPast: number
}
-export interface JourneyLengthBucket {
- len: number
- sessions: number
- truncated: number
-}
-
export interface JourneyNodeDetails {
step: number
page: string
@@ -1737,7 +1731,8 @@ export interface JourneysResponse {
totalSessions: number
// distinct paths before the top-N ranking was applied
totalPaths: number
- lengthHistogram: JourneyLengthBucket[]
+ // how many sessions have a (sliced) path of each length
+ lengthHistogram: { len: number; sessions: number; truncated: number }[]
nodeDetails: JourneyNodeDetails[]
linkDetails: JourneyLinkDetails[]
}