From d4e4c355b720831769debf50cdbdd3e64e81263d Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Mon, 5 Aug 2024 23:42:33 +0200 Subject: [PATCH] Add custom plausible goals Add goals mail, instagram and whatsapp. --- layouts/partials/footer.html | 6 +++--- layouts/partials/plausible_js.html | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/plausible_js.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f8b748b..d582611 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,10 +4,10 @@ {{ with .Site.Params.imprint }} {{ .label }} diff --git a/layouts/partials/plausible_js.html b/layouts/partials/plausible_js.html new file mode 100644 index 0000000..23da253 --- /dev/null +++ b/layouts/partials/plausible_js.html @@ -0,0 +1,9 @@ +function ClickOnInstagram() { + plausible('Instagram'); +} +function ClickOnMail() { + plausible('Mail'); +} +function ClickOnWhatsApp() { + plausible('WhatsApp'); +}