Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { api } from './api';
import { apiRaw } from './api';

const TRACKED_PATHS = ['/', '/secret'];

Expand All @@ -19,7 +19,7 @@ export async function trackPageView(path: string): Promise<void> {
const normalizedPath = path.startsWith('/secret/') ? '/secret' : path;

try {
await api.analytics.track.$post({ json: { path: normalizedPath } });
await apiRaw.analytics.track.$post({ json: { path: normalizedPath } });
} catch {
// Silently fail - analytics should not affect user experience
}
Expand Down