Skip to content

Commit 7560d68

Browse files
fix: add the data-spa attribute to the fathom script (#339)
1 parent fa1ccb2 commit 7560d68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clients/web/src/lib/load-fathom.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ export function loadFathom() {
44
const fathomUrl = import.meta.env.VITE_FATHOM_URL;
55
const fathomId = import.meta.env.VITE_FATHOM_ID;
66
if (fathomUrl && fathomId)
7-
createScriptLoader({ src: fathomUrl, "data-site": fathomId, defer: true });
7+
createScriptLoader({
8+
src: fathomUrl,
9+
"data-site": fathomId,
10+
"data-spa": "auto",
11+
defer: true,
12+
});
813
}

0 commit comments

Comments
 (0)