Skip to content

Commit 496b2e5

Browse files
committed
Removing debug info from the console
1 parent 8da05d0 commit 496b2e5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/HallAnalytics.astro

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
1111

1212
const HALL_API_KEY = apiKey;
1313

14-
console.log('[Hall Analytics] Initializing with API key:', HALL_API_KEY ? 'Present' : 'Missing');
15-
1614
if (!HALL_API_KEY) {
17-
console.warn('[Hall Analytics] No API key found');
1815
return;
1916
}
2017

@@ -54,9 +51,7 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
5451
body: JSON.stringify(analyticsData),
5552
})
5653
.then(response => {
57-
if (response.ok) {
58-
console.log('[Hall Analytics] Page view tracked:', path);
59-
} else {
54+
if (!response.ok) {
6055
console.error('[Hall Analytics] Failed to track:', response.status);
6156
}
6257
})

0 commit comments

Comments
 (0)