From ac200ddcfd05110b8addfc2bcd0196ba19113cb7 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 22 Mar 2024 12:14:27 -0700 Subject: [PATCH] chore: analytics --- package.json | 2 +- src/assets/scripts/search.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4025f611..d19a5010 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "8.4.5", + "version": "8.4.6", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/assets/scripts/search.js b/src/assets/scripts/search.js index 247860fb..495c5ecf 100644 --- a/src/assets/scripts/search.js +++ b/src/assets/scripts/search.js @@ -29,6 +29,7 @@ const query = $input.value const results = (query.length > 1) ? getSearchResults(query) : [] if (query === '') renderSearchResults([]) + if (results && plausible) plausible(`Search query: ${query}`) renderSearchResults(results) })