improve analytics

This commit is contained in:
2021-06-28 12:26:14 -07:00
parent de72997986
commit 60c788cda5
4 changed files with 25 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ const IndexPage = ({ data: { allFile: { edges } } }) => {
try {
// eslint-disable-next-line
posthog.capture('[shuffle image]', { currentImage: currentImage?.base });
window.plausible('Shuffle', {props: { currentImage: currentImage?.base }});
} catch (e) {/* do nothing */}
}
const index = getDifferentRand(images.length, lastThreeImages);