Skip to content

Commit ae4c843

Browse files
committed
Remove debug logging from trackEvent function and update Fathom analytics script tag
1 parent 4b31f22 commit ae4c843

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

pcd-website/src/lib/analytics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export type AnalyticsEvent =
1111

1212
export function trackEvent(name: AnalyticsEvent): void {
1313
if (typeof window !== 'undefined') {
14-
console.debug('[analytics] trackEvent fired for event:', name);
1514
window.fathom?.trackEvent(name);
1615
}
1716
}

pcd-website/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const pageUrl = Astro.url.href;
5252
<link rel="preconnect" href="https://fonts.googleapis.com" />
5353
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
5454
<!-- Fathom - beautiful, simple website analytics -->
55-
<script src="https://cdn.usefathom.com/script.js" data-site="FKXYYJDU" defer is:inline></script>
55+
<script src="https://cdn.usefathom.com/script.js" data-site="FKXYYJDU" defer></script>
5656
<!-- / Fathom -->
5757
<script is:inline>
5858
const stored = localStorage.getItem('pcd-map-style');

0 commit comments

Comments
 (0)