From 3b72afe9cf7597e4cc30ef051e5383c583a76989 Mon Sep 17 00:00:00 2001 From: Liz Daly Date: Thu, 20 Jul 2023 14:24:31 +0100 Subject: [PATCH] Update Plausible script to manually trigger page view events By default Plausible strips query params from urls to count page views. We want to track search terms via the 'query' tag. To do this we will need to switch to using the manual Plausible script, and define a function to manually trigger events. --- src/_layouts/default.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_layouts/default.html b/src/_layouts/default.html index b767a6bdc..5c2c8eaad 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -22,7 +22,9 @@ {% endif %} - + + + {% include navbar.html %}