diff options
Diffstat (limited to 'layouts/_partials/scripts/fancybox-js.html')
| -rw-r--r-- | layouts/_partials/scripts/fancybox-js.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html index 4823f30c..d810dd29 100644 --- a/layouts/_partials/scripts/fancybox-js.html +++ b/layouts/_partials/scripts/fancybox-js.html @@ -1,2 +1,10 @@ <script src="/js/fancybox.umd.js"></script> -<script>Fancybox.bind("[data-fancybox]");</script> +<script> +Fancybox.bind("[data-fancybox]", { + on: { + close: () => { + umami.track('🖼️ Fancybox Closed'); + }, + }, +}); +</script> |
