feat: matomo event tracking

This commit is contained in:
Codetrauma
2025-03-13 11:02:15 -07:00
parent 312db25361
commit 6f560f280b

View File

@@ -29,6 +29,13 @@ export default function Steps(): ReactElement {
const [screenName, setScreenName] = useState<string>('');
const [exploding, setExploding] = useState<boolean>(false);
useEffect(() => {
if (typeof window !== 'undefined' && window._paq) {
window._paq.push(['trackEvent', 'Demo', 'Step', steps[step]]);
}
}, [step]);
useEffect(() => {
const checkExtension = () => {
//@ts-ignore