diff options
Diffstat (limited to 'themes/blowfish/layouts/partials/analytics/umami.html')
-rw-r--r-- | themes/blowfish/layouts/partials/analytics/umami.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/blowfish/layouts/partials/analytics/umami.html b/themes/blowfish/layouts/partials/analytics/umami.html index f9fb041..96b6cb2 100644 --- a/themes/blowfish/layouts/partials/analytics/umami.html +++ b/themes/blowfish/layouts/partials/analytics/umami.html @@ -10,6 +10,7 @@ </script> {{ end }} +{{ if .Site.Params.umamiAnalytics.enableTrackEvent | default true }} <script type="text/javascript"> document.querySelector('script[data-id="umami-script"]') .addEventListener('load', function () { @@ -18,4 +19,5 @@ let url = document.head.querySelector('meta[property = "og:url"]').getAttribute('content'); umami.track(type + ':' + title, {'url': url}); }); -</script>
\ No newline at end of file +</script> +{{ end }}
\ No newline at end of file |