diff --git a/apps/client/src/App.tsx b/apps/client/src/App.tsx
index 5f0181f23..b4408184f 100644
--- a/apps/client/src/App.tsx
+++ b/apps/client/src/App.tsx
@@ -40,7 +40,7 @@ import WorkspaceApiKeys from "@/ee/api-key/pages/workspace-api-keys";
import AiSettings from "@/ee/ai/pages/ai-settings.tsx";
import BasePage from "@/ee/base/pages/base-page.tsx";
import AuditLogs from "@/ee/audit/pages/audit-logs.tsx";
-import PageViewAnalytics from "@/ee/page-view/pages/page-view-analytics.tsx";
+import PageAnalytics from "@/ee/page-analytics/pages/page-analytics.tsx";
import VerifiedPages from "@/ee/page-verification/pages/verified-pages.tsx";
import TemplateList from "@/ee/template/pages/template-list";
import TemplateEditor from "@/ee/template/pages/template-editor";
@@ -128,7 +128,7 @@ export default function App() {
} />
} />
} />
- } />
+ } />
} />
{!isCloud() && } />}
{isCloud() && } />}
diff --git a/apps/client/src/components/settings/settings-queries.tsx b/apps/client/src/components/settings/settings-queries.tsx
index 4dab56174..6ffc6143c 100644
--- a/apps/client/src/components/settings/settings-queries.tsx
+++ b/apps/client/src/components/settings/settings-queries.tsx
@@ -15,10 +15,10 @@ import { getAuditLogs } from "@/ee/audit/services/audit-service";
import { getVerificationList } from "@/ee/page-verification/services/page-verification-service";
import { getScimTokens } from "@/ee/scim/services/scim-token-service";
import {
- getWorkspacePageViewDailyStats,
- getWorkspacePageViewTopPages,
- getWorkspacePageViewTotals,
-} from "@/ee/page-view/services/page-view-analytics-service";
+ getWorkspacePageAnalyticsDailyStats,
+ getWorkspacePageAnalyticsTopPages,
+ getWorkspacePageAnalyticsTotals,
+} from "@/ee/page-analytics/services/page-analytics-service";
export const prefetchWorkspaceMembers = () => {
const params: QueryParams = { limit: 100, query: "" };
@@ -115,18 +115,18 @@ export const prefetchPageAnalytics = () => {
const listParams = { ...dateRange, cursor: undefined, limit: 10 };
queryClient.prefetchQuery({
- queryKey: ["workspace-page-view-totals", dateRange],
- queryFn: () => getWorkspacePageViewTotals(dateRange),
+ queryKey: ["workspace-page-analytics-totals", dateRange],
+ queryFn: () => getWorkspacePageAnalyticsTotals(dateRange),
});
queryClient.prefetchQuery({
- queryKey: ["workspace-page-view-top-pages", listParams],
- queryFn: () => getWorkspacePageViewTopPages(listParams),
+ queryKey: ["workspace-page-analytics-top-pages", listParams],
+ queryFn: () => getWorkspacePageAnalyticsTopPages(listParams),
});
queryClient.prefetchQuery({
- queryKey: ["workspace-page-view-daily-stats", listParams],
- queryFn: () => getWorkspacePageViewDailyStats(listParams),
+ queryKey: ["workspace-page-analytics-daily-stats", listParams],
+ queryFn: () => getWorkspacePageAnalyticsDailyStats(listParams),
});
};
diff --git a/apps/client/src/ee/features.ts b/apps/client/src/ee/features.ts
index 67718f91c..cec8a7af7 100644
--- a/apps/client/src/ee/features.ts
+++ b/apps/client/src/ee/features.ts
@@ -15,7 +15,7 @@ export const Feature = {
SCIM: 'scim',
PAGE_VERIFICATION: 'page:verification',
AUDIT_LOGS: 'audit:logs',
- PAGE_ANALYTICS: 'analytics:page-views',
+ PAGE_ANALYTICS: 'analytics:page-analytics',
RETENTION: 'retention',
SHARING_CONTROLS: 'sharing:controls',
TEMPLATES: 'templates',
diff --git a/apps/client/src/ee/page-view/pages/page-view-analytics.tsx b/apps/client/src/ee/page-analytics/pages/page-analytics.tsx
similarity index 95%
rename from apps/client/src/ee/page-view/pages/page-view-analytics.tsx
rename to apps/client/src/ee/page-analytics/pages/page-analytics.tsx
index d0e1f798d..a7dfd4505 100644
--- a/apps/client/src/ee/page-view/pages/page-view-analytics.tsx
+++ b/apps/client/src/ee/page-analytics/pages/page-analytics.tsx
@@ -16,10 +16,10 @@ import { getAppName } from "@/lib/config";
import Paginate from "@/components/common/paginate";
import { useCursorPaginate } from "@/hooks/use-cursor-paginate";
import {
- useWorkspacePageViewDailyStatsQuery,
- useWorkspacePageViewTopPagesQuery,
- useWorkspacePageViewTotalsQuery,
-} from "@/ee/page-view/queries/page-view-analytics-query";
+ useWorkspacePageAnalyticsDailyStatsQuery,
+ useWorkspacePageAnalyticsTopPagesQuery,
+ useWorkspacePageAnalyticsTotalsQuery,
+} from "@/ee/page-analytics/queries/page-analytics-query";
import { Link } from "react-router-dom";
import { formatLocalized, useDateFnsLocale } from "@/lib/date-locale";
@@ -39,7 +39,7 @@ function formatNumber(value: number | null | undefined): string {
return Number(value ?? 0).toLocaleString();
}
-export default function PageViewAnalytics() {
+export default function PageAnalytics() {
const { t } = useTranslation();
const locale = useDateFnsLocale();
const [rangePreset, setRangePreset] = useState("30");
@@ -97,11 +97,11 @@ export default function PageViewAnalytics() {
[dateRange, dailyCursor]
);
- const { data: totalsData } = useWorkspacePageViewTotalsQuery(dateRange);
+ const { data: totalsData } = useWorkspacePageAnalyticsTotalsQuery(dateRange);
const { data: topPagesData, isLoading: isTopPagesLoading } =
- useWorkspacePageViewTopPagesQuery(topPagesParams);
+ useWorkspacePageAnalyticsTopPagesQuery(topPagesParams);
const { data: dailyData, isLoading: isDailyLoading } =
- useWorkspacePageViewDailyStatsQuery(dailyParams);
+ useWorkspacePageAnalyticsDailyStatsQuery(dailyParams);
const handleRangeChange = (value: RangePreset) => {
if (value) {
diff --git a/apps/client/src/ee/page-analytics/queries/page-analytics-query.ts b/apps/client/src/ee/page-analytics/queries/page-analytics-query.ts
new file mode 100644
index 000000000..fefa3dfe9
--- /dev/null
+++ b/apps/client/src/ee/page-analytics/queries/page-analytics-query.ts
@@ -0,0 +1,44 @@
+import { keepPreviousData, useQuery } from "@tanstack/react-query";
+import {
+ getWorkspacePageAnalyticsDailyStats,
+ getWorkspacePageAnalyticsTopPages,
+ getWorkspacePageAnalyticsTotals,
+} from "@/ee/page-analytics/services/page-analytics-service";
+import type { IPagination } from "@/lib/types";
+import type {
+ WorkspaceAnalyticsDailyStat,
+ WorkspaceAnalyticsListParams,
+ WorkspaceAnalyticsParams,
+ WorkspaceAnalyticsTopPage,
+ WorkspaceAnalyticsTotals,
+} from "@/ee/page-analytics/types/page-analytics.types";
+
+export function useWorkspacePageAnalyticsTotalsQuery(
+ params?: WorkspaceAnalyticsParams,
+) {
+ return useQuery({
+ queryKey: ["workspace-page-analytics-totals", params],
+ queryFn: () => getWorkspacePageAnalyticsTotals(params),
+ placeholderData: keepPreviousData,
+ });
+}
+
+export function useWorkspacePageAnalyticsDailyStatsQuery(
+ params?: WorkspaceAnalyticsListParams,
+) {
+ return useQuery, Error>({
+ queryKey: ["workspace-page-analytics-daily-stats", params],
+ queryFn: () => getWorkspacePageAnalyticsDailyStats(params),
+ placeholderData: keepPreviousData,
+ });
+}
+
+export function useWorkspacePageAnalyticsTopPagesQuery(
+ params?: WorkspaceAnalyticsListParams,
+) {
+ return useQuery, Error>({
+ queryKey: ["workspace-page-analytics-top-pages", params],
+ queryFn: () => getWorkspacePageAnalyticsTopPages(params),
+ placeholderData: keepPreviousData,
+ });
+}
diff --git a/apps/client/src/ee/page-view/services/page-view-analytics-service.ts b/apps/client/src/ee/page-analytics/services/page-analytics-service.ts
similarity index 56%
rename from apps/client/src/ee/page-view/services/page-view-analytics-service.ts
rename to apps/client/src/ee/page-analytics/services/page-analytics-service.ts
index e81d3fba7..4ddb8a1d2 100644
--- a/apps/client/src/ee/page-view/services/page-view-analytics-service.ts
+++ b/apps/client/src/ee/page-analytics/services/page-analytics-service.ts
@@ -6,25 +6,25 @@ import type {
WorkspaceAnalyticsParams,
WorkspaceAnalyticsTopPage,
WorkspaceAnalyticsTotals,
-} from "@/ee/page-view/types/page-view-analytics.types";
+} from "@/ee/page-analytics/types/page-analytics.types";
-export async function getWorkspacePageViewTotals(
+export async function getWorkspacePageAnalyticsTotals(
params?: WorkspaceAnalyticsParams,
): Promise {
- const req = await api.post("/page-views/workspace-stats", params);
+ const req = await api.post("/page-analytics/workspace-stats", params);
return req.data;
}
-export async function getWorkspacePageViewDailyStats(
+export async function getWorkspacePageAnalyticsDailyStats(
params?: WorkspaceAnalyticsListParams,
): Promise> {
- const req = await api.post("/page-views/workspace-daily-stats", params);
+ const req = await api.post("/page-analytics/workspace-daily-stats", params);
return req.data;
}
-export async function getWorkspacePageViewTopPages(
+export async function getWorkspacePageAnalyticsTopPages(
params?: WorkspaceAnalyticsListParams,
): Promise> {
- const req = await api.post("/page-views/workspace-top-pages", params);
+ const req = await api.post("/page-analytics/workspace-top-pages", params);
return req.data;
}
diff --git a/apps/client/src/ee/page-view/types/page-view-analytics.types.ts b/apps/client/src/ee/page-analytics/types/page-analytics.types.ts
similarity index 100%
rename from apps/client/src/ee/page-view/types/page-view-analytics.types.ts
rename to apps/client/src/ee/page-analytics/types/page-analytics.types.ts
diff --git a/apps/client/src/ee/page-view/queries/page-view-analytics-query.ts b/apps/client/src/ee/page-view/queries/page-view-analytics-query.ts
deleted file mode 100644
index 7c1000c1c..000000000
--- a/apps/client/src/ee/page-view/queries/page-view-analytics-query.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { keepPreviousData, useQuery } from "@tanstack/react-query";
-import {
- getWorkspacePageViewDailyStats,
- getWorkspacePageViewTopPages,
- getWorkspacePageViewTotals,
-} from "@/ee/page-view/services/page-view-analytics-service";
-import type { IPagination } from "@/lib/types";
-import type {
- WorkspaceAnalyticsDailyStat,
- WorkspaceAnalyticsListParams,
- WorkspaceAnalyticsParams,
- WorkspaceAnalyticsTopPage,
- WorkspaceAnalyticsTotals,
-} from "@/ee/page-view/types/page-view-analytics.types";
-
-export function useWorkspacePageViewTotalsQuery(
- params?: WorkspaceAnalyticsParams,
-) {
- return useQuery({
- queryKey: ["workspace-page-view-totals", params],
- queryFn: () => getWorkspacePageViewTotals(params),
- placeholderData: keepPreviousData,
- });
-}
-
-export function useWorkspacePageViewDailyStatsQuery(
- params?: WorkspaceAnalyticsListParams,
-) {
- return useQuery, Error>({
- queryKey: ["workspace-page-view-daily-stats", params],
- queryFn: () => getWorkspacePageViewDailyStats(params),
- placeholderData: keepPreviousData,
- });
-}
-
-export function useWorkspacePageViewTopPagesQuery(
- params?: WorkspaceAnalyticsListParams,
-) {
- return useQuery, Error>({
- queryKey: ["workspace-page-view-top-pages", params],
- queryFn: () => getWorkspacePageViewTopPages(params),
- placeholderData: keepPreviousData,
- });
-}
diff --git a/apps/server/src/app.module.ts b/apps/server/src/app.module.ts
index ebc3b1b00..7f7ea5db8 100644
--- a/apps/server/src/app.module.ts
+++ b/apps/server/src/app.module.ts
@@ -26,7 +26,7 @@ import KeyvRedis from '@keyv/redis';
import { LoggerModule } from './common/logger/logger.module';
import { ClsModule } from 'nestjs-cls';
import { NoopAuditModule } from './integrations/audit/audit.module';
-import { NoopPageViewModule } from './integrations/page-view/page-view.module';
+import { NoopPageAnalyticsModule } from './integrations/page-analytics/page-analytics.module';
import { ThrottleModule } from './integrations/throttle/throttle.module';
const enterpriseModules = [];
@@ -51,7 +51,7 @@ try {
}),
LoggerModule,
NoopAuditModule,
- NoopPageViewModule,
+ NoopPageAnalyticsModule,
CoreModule,
DatabaseModule,
EnvironmentModule,
diff --git a/apps/server/src/common/features.ts b/apps/server/src/common/features.ts
index 94bf33350..17218bc95 100644
--- a/apps/server/src/common/features.ts
+++ b/apps/server/src/common/features.ts
@@ -15,7 +15,7 @@ export const Feature = {
SCIM: 'scim',
PAGE_VERIFICATION: 'page:verification',
AUDIT_LOGS: 'audit:logs',
- PAGE_ANALYTICS: 'analytics:page-views',
+ PAGE_ANALYTICS: 'analytics:page-analytics',
RETENTION: 'retention',
SHARING_CONTROLS: 'sharing:controls',
VIEWER_COMMENTS: 'comment:viewer',
diff --git a/apps/server/src/core/page/page.controller.ts b/apps/server/src/core/page/page.controller.ts
index 925d14fd6..c30facde9 100644
--- a/apps/server/src/core/page/page.controller.ts
+++ b/apps/server/src/core/page/page.controller.ts
@@ -52,9 +52,9 @@ import {
IAuditService,
} from '../../integrations/audit/audit.service';
import {
- PAGE_VIEW_SERVICE,
- IPageViewService,
-} from '../../integrations/page-view/page-view.service';
+ PAGE_ANALYTICS_SERVICE,
+ IPageAnalyticsService,
+} from '../../integrations/page-analytics/page-analytics.service';
import { getPageTitle } from '../../common/helpers';
@UseGuards(JwtAuthGuard)
@@ -69,7 +69,7 @@ export class PageController {
private readonly backlinkService: BacklinkService,
private readonly labelService: LabelService,
@Inject(AUDIT_SERVICE) private readonly auditService: IAuditService,
- @Inject(PAGE_VIEW_SERVICE) private readonly pageViewService: IPageViewService,
+ @Inject(PAGE_ANALYTICS_SERVICE) private readonly pageAnalyticsService: IPageAnalyticsService,
) {}
@HttpCode(HttpStatus.OK)
@@ -93,7 +93,7 @@ export class PageController {
const permissions = { canEdit, hasRestriction };
- void this.pageViewService.track({
+ void this.pageAnalyticsService.track({
pageId: page.id,
workspaceId: page.workspaceId,
spaceId: page.spaceId,
diff --git a/apps/server/src/core/share/share.controller.ts b/apps/server/src/core/share/share.controller.ts
index 051956414..55ac13477 100644
--- a/apps/server/src/core/share/share.controller.ts
+++ b/apps/server/src/core/share/share.controller.ts
@@ -36,9 +36,9 @@ import {
IAuditService,
} from '../../integrations/audit/audit.service';
import {
- PAGE_VIEW_SERVICE,
- IPageViewService,
-} from '../../integrations/page-view/page-view.service';
+ PAGE_ANALYTICS_SERVICE,
+ IPageAnalyticsService,
+} from '../../integrations/page-analytics/page-analytics.service';
@UseGuards(JwtAuthGuard)
@Controller('shares')
@@ -51,8 +51,8 @@ export class ShareController {
private readonly pageAccessService: PageAccessService,
private readonly licenseCheckService: LicenseCheckService,
@Inject(AUDIT_SERVICE) private readonly auditService: IAuditService,
- @Inject(PAGE_VIEW_SERVICE)
- private readonly pageViewService: IPageViewService,
+ @Inject(PAGE_ANALYTICS_SERVICE)
+ private readonly pageAnalyticsService: IPageAnalyticsService,
) {}
@HttpCode(HttpStatus.OK)
@@ -85,7 +85,7 @@ export class ShareController {
throw new NotFoundException('Shared page not found');
}
- void this.pageViewService.track({
+ void this.pageAnalyticsService.track({
pageId: shareData.page.id,
workspaceId: workspace.id,
spaceId: shareData.page.spaceId,
diff --git a/apps/server/src/database/migrations/20260809T000000-page-views.ts b/apps/server/src/database/migrations/20260809T000000-page-analytics.ts
similarity index 84%
rename from apps/server/src/database/migrations/20260809T000000-page-views.ts
rename to apps/server/src/database/migrations/20260809T000000-page-analytics.ts
index ea7c5d0d7..185d4131b 100644
--- a/apps/server/src/database/migrations/20260809T000000-page-views.ts
+++ b/apps/server/src/database/migrations/20260809T000000-page-analytics.ts
@@ -2,7 +2,7 @@ import { Kysely, sql } from 'kysely';
export async function up(db: Kysely): Promise {
await db.schema
- .createTable('page_views')
+ .createTable('page_analytics')
.ifNotExists()
.addColumn('id', 'uuid', (col) =>
col.primaryKey().defaultTo(sql`gen_uuid_v7()`),
@@ -32,16 +32,16 @@ export async function up(db: Kysely): Promise {
.execute();
await db.schema
- .createIndex('idx_page_views_workspace_page_date')
+ .createIndex('idx_page_analytics_workspace_page_date')
.ifNotExists()
- .on('page_views')
+ .on('page_analytics')
.columns(['workspace_id', 'page_id', 'view_date'])
.execute();
await sql`
CREATE UNIQUE INDEX IF NOT EXISTS
- uq_page_views_workspace_page_identity
- ON page_views (
+ uq_page_analytics_workspace_page_identity
+ ON page_analytics (
workspace_id,
page_id,
COALESCE(user_id::text, visitor_id)
@@ -50,5 +50,5 @@ export async function up(db: Kysely): Promise {
}
export async function down(db: Kysely): Promise {
- await db.schema.dropTable('page_views').ifExists().execute();
+ await db.schema.dropTable('page_analytics').ifExists().execute();
}
diff --git a/apps/server/src/database/types/db.d.ts b/apps/server/src/database/types/db.d.ts
index 18bcef54a..bb58e310f 100644
--- a/apps/server/src/database/types/db.d.ts
+++ b/apps/server/src/database/types/db.d.ts
@@ -544,7 +544,7 @@ export interface PagePermissions {
updatedAt: Generated;
}
-export interface PageViews {
+export interface PageAnalytics {
id: Generated;
workspaceId: string;
pageId: string;
@@ -676,7 +676,7 @@ export interface DB {
pagePermissions: PagePermissions;
pageHistory: PageHistory;
pageLabels: PageLabels;
- pageViews: PageViews;
+ pageAnalytics: PageAnalytics;
pageVerifications: PageVerifications;
pageVerifiers: PageVerifiers;
pages: Pages;
diff --git a/apps/server/src/database/types/entity.types.ts b/apps/server/src/database/types/entity.types.ts
index a2755ab0a..9bb697806 100644
--- a/apps/server/src/database/types/entity.types.ts
+++ b/apps/server/src/database/types/entity.types.ts
@@ -1,7 +1,7 @@
import { Insertable, Selectable, Updateable } from 'kysely';
import {
AiChats,
- PageViews,
+ PageAnalytics as _PageAnalytics,
AiChatMessages,
Attachments,
BaseProperties,
@@ -108,9 +108,9 @@ export type PageHistory = Selectable;
export type InsertablePageHistory = Insertable;
export type UpdatablePageHistory = Updateable>;
-export type PageView = Selectable;
-export type InsertablePageView = Insertable;
-export type UpdatablePageView = Updateable>;
+export type PageAnalytics = Selectable<_PageAnalytics>;
+export type InsertablePageAnalytics = Insertable<_PageAnalytics>;
+export type UpdatablePageAnalytics = Updateable>;
// Comment
export type Comment = Selectable;
diff --git a/apps/server/src/integrations/page-analytics/page-analytics.module.ts b/apps/server/src/integrations/page-analytics/page-analytics.module.ts
new file mode 100644
index 000000000..b849cfbb9
--- /dev/null
+++ b/apps/server/src/integrations/page-analytics/page-analytics.module.ts
@@ -0,0 +1,14 @@
+import { Global, Module } from '@nestjs/common';
+import { PAGE_ANALYTICS_SERVICE, NoopPageAnalyticsService } from './page-analytics.service';
+
+@Global()
+@Module({
+ providers: [
+ {
+ provide: PAGE_ANALYTICS_SERVICE,
+ useClass: NoopPageAnalyticsService,
+ },
+ ],
+ exports: [PAGE_ANALYTICS_SERVICE],
+})
+export class NoopPageAnalyticsModule {}
diff --git a/apps/server/src/integrations/page-analytics/page-analytics.service.ts b/apps/server/src/integrations/page-analytics/page-analytics.service.ts
new file mode 100644
index 000000000..90706f136
--- /dev/null
+++ b/apps/server/src/integrations/page-analytics/page-analytics.service.ts
@@ -0,0 +1,21 @@
+import { Injectable } from '@nestjs/common';
+
+export type PageAnalyticsPayload = {
+ pageId: string;
+ workspaceId?: string;
+ spaceId?: string;
+ shareId?: string;
+ userId?: string | null;
+ visitorId?: string;
+};
+
+export const PAGE_ANALYTICS_SERVICE = Symbol('PAGE_ANALYTICS_SERVICE');
+
+export interface IPageAnalyticsService {
+ track(payload: PageAnalyticsPayload): void | Promise;
+}
+
+@Injectable()
+export class NoopPageAnalyticsService implements IPageAnalyticsService {
+ track(_payload: PageAnalyticsPayload): void {}
+}
diff --git a/apps/server/src/integrations/page-view/page-view.module.ts b/apps/server/src/integrations/page-view/page-view.module.ts
deleted file mode 100644
index a1ad32ebd..000000000
--- a/apps/server/src/integrations/page-view/page-view.module.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { Global, Module } from '@nestjs/common';
-import { PAGE_VIEW_SERVICE, NoopPageViewService } from './page-view.service';
-
-@Global()
-@Module({
- providers: [
- {
- provide: PAGE_VIEW_SERVICE,
- useClass: NoopPageViewService,
- },
- ],
- exports: [PAGE_VIEW_SERVICE],
-})
-export class NoopPageViewModule {}
diff --git a/apps/server/src/integrations/page-view/page-view.service.ts b/apps/server/src/integrations/page-view/page-view.service.ts
deleted file mode 100644
index 06e88f1aa..000000000
--- a/apps/server/src/integrations/page-view/page-view.service.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Injectable } from '@nestjs/common';
-
-export type PageViewPayload = {
- pageId: string;
- workspaceId?: string;
- spaceId?: string;
- shareId?: string;
- userId?: string | null;
- visitorId?: string;
-};
-
-export const PAGE_VIEW_SERVICE = Symbol('PAGE_VIEW_SERVICE');
-
-export interface IPageViewService {
- track(payload: PageViewPayload): void | Promise;
-}
-
-@Injectable()
-export class NoopPageViewService implements IPageViewService {
- track(_payload: PageViewPayload): void {}
-}
diff --git a/apps/server/src/integrations/queue/constants/queue.constants.ts b/apps/server/src/integrations/queue/constants/queue.constants.ts
index 3667e76f0..492798c5f 100644
--- a/apps/server/src/integrations/queue/constants/queue.constants.ts
+++ b/apps/server/src/integrations/queue/constants/queue.constants.ts
@@ -9,7 +9,7 @@ export enum QueueName {
HISTORY_QUEUE = '{history-queue}',
NOTIFICATION_QUEUE = '{notification-queue}',
AUDIT_QUEUE = '{audit-queue}',
- PAGE_VIEW_QUEUE = '{page-view-queue}',
+ PAGE_ANALYTICS_QUEUE = '{page-analytics-queue}',
BASE_QUEUE = '{base-queue}',
}
@@ -82,8 +82,8 @@ export enum QueueJob {
AUDIT_LOG = 'audit-log',
AUDIT_CLEANUP = 'audit-cleanup',
- PAGE_VIEW_TRACK = 'page-view-track',
- PAGE_VIEW_CLEANUP = 'page-view-cleanup',
+ PAGE_ANALYTICS_TRACK = 'page-analytics-track',
+ PAGE_ANALYTICS_CLEANUP = 'page-analytics-cleanup',
PDF_EXPORT_TASK = 'pdf-export-task',
PDF_EXPORT_CLEANUP = 'pdf-export-cleanup',
diff --git a/apps/server/src/integrations/queue/queue.module.ts b/apps/server/src/integrations/queue/queue.module.ts
index 6a76a585f..fc0c6e7ab 100644
--- a/apps/server/src/integrations/queue/queue.module.ts
+++ b/apps/server/src/integrations/queue/queue.module.ts
@@ -93,7 +93,7 @@ import { GeneralQueueProcessor } from './processors/general-queue.processor';
},
}),
BullModule.registerQueue({
- name: QueueName.PAGE_VIEW_QUEUE,
+ name: QueueName.PAGE_ANALYTICS_QUEUE,
defaultJobOptions: {
removeOnComplete: true,
removeOnFail: true,