Skip to content

Commit 1bb0a13

Browse files
refactor(analytics): invoke page entry tracking on integration load
1 parent 917fc82 commit 1bb0a13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/integrations/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function analytics(): AstroIntegration {
1010
`
1111
const API_URL = "https://freq-know-analytics.dhimankeshav201.workers.dev/track/";
1212
13-
export function trackPageEntry() {
13+
function trackPageEntry() {
1414
// Don't track in development
1515
if (window.location.hostname === "localhost") return;
1616
@@ -27,7 +27,7 @@ export function trackPageEntry() {
2727
}).catch(() => {}); // Silent fail
2828
}
2929
}
30-
console.log("HELLO")
30+
trackPageEntry()
3131
`,
3232
);
3333
},

0 commit comments

Comments
 (0)