Skip to content

Commit d2c834c

Browse files
committed
Adding some debug info
1 parent ac0981e commit d2c834c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/HallAnalytics.astro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
1212
const HALL_API_KEY = apiKey;
1313

1414
if (!HALL_API_KEY) {
15+
console.log('[Hall Analytics] No API key found - analytics disabled');
1516
return;
1617
}
1718

@@ -42,6 +43,11 @@ const HALL_API_KEY = import.meta.env.HALL_API_KEY;
4243
request_timestamp: timestamp
4344
};
4445

46+
// Debug: Log what's being sent to Hall
47+
console.log('[Hall Analytics Debug] User-Agent:', requestHeaders['User-Agent']);
48+
console.log('[Hall Analytics Debug] Full request headers:', requestHeaders);
49+
console.log('[Hall Analytics Debug] Full analytics data:', analyticsData);
50+
4551
// Send to Hall Analytics
4652
fetch('https://analytics.usehall.com/visit', {
4753
method: 'POST',

0 commit comments

Comments
 (0)