roadmap/quartz/components/scripts/plausible.inline.ts

4 lines
136 B
TypeScript

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