We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da05d0 commit 496b2e5Copy full SHA for 496b2e5
src/components/HallAnalytics.astro
@@ -11,10 +11,7 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
11
12
const HALL_API_KEY = apiKey;
13
14
- console.log('[Hall Analytics] Initializing with API key:', HALL_API_KEY ? 'Present' : 'Missing');
15
-
16
if (!HALL_API_KEY) {
17
- console.warn('[Hall Analytics] No API key found');
18
return;
19
}
20
@@ -54,9 +51,7 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
54
51
body: JSON.stringify(analyticsData),
55
52
})
56
53
.then(response => {
57
- if (response.ok) {
58
- console.log('[Hall Analytics] Page view tracked:', path);
59
- } else {
+ if (!response.ok) {
60
console.error('[Hall Analytics] Failed to track:', response.status);
61
62
0 commit comments