quartz-research-note/quartz/components/scripts/plausible.inline.ts
2023-07-22 17:27:41 -07:00

4 lines
136 B
TypeScript

import Plausible from "plausible-tracker"
const { trackPageview } = Plausible()
document.addEventListener("nav", () => trackPageview())