mirror of
https://github.com/tlsnotary/tlsn-plugin-demo.git
synced 2026-01-08 21:08:13 -05:00
feat: matomo event tracking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user