track events with matomo

This commit is contained in:
2021-07-18 10:23:55 -07:00
parent 7377288554
commit 223edbc507
3 changed files with 5 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ const IndexPage = ({
window.plausible("Shuffle", {
props: { currentImage: currentImage?.base },
});
// eslint-disable-next-line
_paq.push(['trackEvent', 'Index', 'Shuffle', currentImage?.base]);
} catch (e) {
/* do nothing */
}