diff --git a/src/pages/photogallery.js b/src/pages/photogallery.js index 0104707..d6ad8b3 100644 --- a/src/pages/photogallery.js +++ b/src/pages/photogallery.js @@ -17,6 +17,13 @@ const GalleryPage = ({ data }) => { const [sortKey, _setSortKey] = React.useState("hue"); const setSortKey = React.useCallback( (key) => { + try { + window.plausible("Sort Gallery", { + props: { key } + }) + } catch (e) { + // do nothing + } localStorage?.setItem("photogallery.sortkey", key); _setSortKey(key); },